Skip to content

Commit 5b87411

Browse files
HoOngEejoojis
authored andcommitted
Remove unguaranteed transaction order
To guarantee that the delegate transaction is executed after the self-nomination transaction, the transactions should be sent to the same nodes.
1 parent a4f944c commit 5b87411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/src/e2e.dynval/2/dv.n+1.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ describe("Dynamic Validator N -> N+1", function() {
105105
);
106106
const delegateTx = stake
107107
.createDelegateCCSTransaction(
108-
checkingNode.sdk,
108+
bettyNode.sdk,
109109
betty.platformAddress,
110110
5_000
111111
)
112112
.sign({
113113
secret: faucetSecret,
114-
seq: await checkingNode.sdk.rpc.chain.getSeq(faucetAddress),
114+
seq: await bettyNode.sdk.rpc.chain.getSeq(faucetAddress),
115115
fee: 10
116116
});
117-
const delegateTxHash = checkingNode.sdk.rpc.chain.sendSignedTransaction(
117+
const delegateTxHash = bettyNode.sdk.rpc.chain.sendSignedTransaction(
118118
delegateTx
119119
);
120120
await checkingNode.waitForTx([nominateTxHash, delegateTxHash]);

0 commit comments

Comments
 (0)