Skip to content

Commit 562a5cd

Browse files
authored
make order of ixs deterministic when sending proposal (#613)
1 parent 58db641 commit 562a5cd

File tree

1 file changed

+2
-2
lines changed
  • governance/xc_admin/packages/xc_admin_frontend/components/tabs

1 file changed

+2
-2
lines changed

governance/xc_admin/packages/xc_admin_frontend/components/tabs/General.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const General = () => {
254254
const handleSendProposalButtonClick = async () => {
255255
if (pythProgramClient && dataChanges && !isMultisigLoading && squads) {
256256
const instructions: TransactionInstruction[] = []
257-
Object.keys(dataChanges).forEach(async (symbol) => {
257+
for (const symbol of Object.keys(dataChanges)) {
258258
const multisigAuthority = squads.getAuthorityPDA(
259259
PRICE_FEED_MULTISIG[getMultisigCluster(cluster)],
260260
1
@@ -402,7 +402,7 @@ const General = () => {
402402
.then((instruction) => instructions.push(instruction))
403403
})
404404
}
405-
})
405+
}
406406

407407
setIsSendProposalButtonLoading(true)
408408
try {

0 commit comments

Comments
 (0)