make order of ixs deterministic when sending proposal (#613)

This commit is contained in:
Daniel Chew 2023-02-21 00:51:56 +09:00 committed by GitHub
parent 58db641ddd
commit 562a5cd0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ const General = () => {
const handleSendProposalButtonClick = async () => {
if (pythProgramClient && dataChanges && !isMultisigLoading && squads) {
const instructions: TransactionInstruction[] = []
Object.keys(dataChanges).forEach(async (symbol) => {
for (const symbol of Object.keys(dataChanges)) {
const multisigAuthority = squads.getAuthorityPDA(
PRICE_FEED_MULTISIG[getMultisigCluster(cluster)],
1
@ -402,7 +402,7 @@ const General = () => {
.then((instruction) => instructions.push(instruction))
})
}
})
}
setIsSendProposalButtonLoading(true)
try {