File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
governance/xc_admin/packages/xc_admin_frontend/components/tabs Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -396,16 +396,17 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
396
396
397
397
// create add publisher instruction if there are any publishers
398
398
for ( const publisherKey of newChanges . priceAccounts [ 0 ] . publishers ) {
399
+ const publisherPubKey = new PublicKey ( publisherKey )
399
400
instructions . push (
400
401
await pythProgramClient . methods
401
- . addPublisher ( new PublicKey ( publisherKey ) )
402
+ . addPublisher ( publisherPubKey )
402
403
. accounts ( {
403
404
fundingAccount,
404
405
priceAccount : priceAccountKey ,
405
406
} )
406
407
. instruction ( )
407
408
)
408
- await initPublisher ( publisherKey )
409
+ await initPublisher ( publisherPubKey )
409
410
}
410
411
411
412
// create set min publisher instruction if there are any publishers
@@ -565,16 +566,17 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
565
566
566
567
// add instructions to add new publishers
567
568
for ( const publisherKey of publisherKeysToAdd ) {
569
+ const publisherPubKey = new PublicKey ( publisherKey )
568
570
instructions . push (
569
571
await pythProgramClient . methods
570
- . addPublisher ( new PublicKey ( publisherKey ) )
572
+ . addPublisher ( publisherPubKey )
571
573
. accounts ( {
572
574
fundingAccount,
573
575
priceAccount : new PublicKey ( prev . priceAccounts [ 0 ] . address ) ,
574
576
} )
575
577
. instruction ( )
576
578
)
577
- await initPublisher ( publisherKey )
579
+ await initPublisher ( publisherPubKey )
578
580
}
579
581
}
580
582
}
You can’t perform that action at this time.
0 commit comments