Skip to content

Commit

Permalink
fix setFee test
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometer1729 committed Jan 10, 2025
1 parent 4f1732b commit 78c7448
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/mina/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ describe('transactions', () => {
let promise = await tx.sign([feePayer.key, contractAccount.key]).send();
let new_fee = promise.setFee(new UInt64(100));
new_fee.sign([feePayer.key,contractAccount.key]);
//expect((async () => await new_fee.send())).toThrowError("Transaction verification failed: Cannot update field 'incrementNonce' because permission for this field is 'Signature', but the required authorization was not provided or is invalid.");
// second send is rejected for using the same nonce
await expect((new_fee.send()))
.rejects
.toThrowError("Account_nonce_precondition_unsatisfied");
// check that tx was applied, by checking nonce was incremented
expect((await new_fee).transaction.feePayer.body.nonce).toEqual(nonce);
});
Expand Down

0 comments on commit 78c7448

Please sign in to comment.