Skip to content

Commit

Permalink
increment nonce based on pending state
Browse files Browse the repository at this point in the history
  • Loading branch information
magecnion committed Nov 5, 2024
1 parent 626e48c commit 6ea6683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e-tests/tests/test-vesting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describeWithExistingNode("Frontier RPC (Vesting)", (context) => {
expect(result.status).to.be.eq(true);
});
step("when vesting exists do vestOther returns ok", async function () {
let nonce = await context.web3.eth.getTransactionCount(FAITH);
let nonce = await context.web3.eth.getTransactionCount(FAITH, 'pending');
contract.options.from = FAITH;
const estimatedGas = await contract.methods.vestOther(ALITH).estimateGas();
let result = await contract.methods.vestOther(ALITH).send({ from: FAITH, gas: estimatedGas, nonce: nonce++ });
Expand Down

0 comments on commit 6ea6683

Please sign in to comment.