make order of ixs deterministic when sending proposal (#613)
This commit is contained in:
parent
58db641ddd
commit
562a5cd0fa
|
@ -254,7 +254,7 @@ const General = () => {
|
||||||
const handleSendProposalButtonClick = async () => {
|
const handleSendProposalButtonClick = async () => {
|
||||||
if (pythProgramClient && dataChanges && !isMultisigLoading && squads) {
|
if (pythProgramClient && dataChanges && !isMultisigLoading && squads) {
|
||||||
const instructions: TransactionInstruction[] = []
|
const instructions: TransactionInstruction[] = []
|
||||||
Object.keys(dataChanges).forEach(async (symbol) => {
|
for (const symbol of Object.keys(dataChanges)) {
|
||||||
const multisigAuthority = squads.getAuthorityPDA(
|
const multisigAuthority = squads.getAuthorityPDA(
|
||||||
PRICE_FEED_MULTISIG[getMultisigCluster(cluster)],
|
PRICE_FEED_MULTISIG[getMultisigCluster(cluster)],
|
||||||
1
|
1
|
||||||
|
@ -402,7 +402,7 @@ const General = () => {
|
||||||
.then((instruction) => instructions.push(instruction))
|
.then((instruction) => instructions.push(instruction))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
|
||||||
setIsSendProposalButtonLoading(true)
|
setIsSendProposalButtonLoading(true)
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue