Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,16 +396,17 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {

// create add publisher instruction if there are any publishers
for (const publisherKey of newChanges.priceAccounts[0].publishers) {
const publisherPubKey = new PublicKey(publisherKey)
instructions.push(
await pythProgramClient.methods
.addPublisher(new PublicKey(publisherKey))
.addPublisher(publisherPubKey)
.accounts({
fundingAccount,
priceAccount: priceAccountKey,
})
.instruction()
)
await initPublisher(publisherKey)
await initPublisher(publisherPubKey)
}

// create set min publisher instruction if there are any publishers
Expand Down Expand Up @@ -565,16 +566,17 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {

// add instructions to add new publishers
for (const publisherKey of publisherKeysToAdd) {
const publisherPubKey = new PublicKey(publisherKey)
instructions.push(
await pythProgramClient.methods
.addPublisher(new PublicKey(publisherKey))
.addPublisher(publisherPubKey)
.accounts({
fundingAccount,
priceAccount: new PublicKey(prev.priceAccounts[0].address),
})
.instruction()
)
await initPublisher(publisherKey)
await initPublisher(publisherPubKey)
}
}
}
Expand Down
Loading