Skip to content

Commit

Permalink
Fix typo issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmyshchyshyn committed Dec 20, 2024
1 parent 67458ec commit 098fcde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types/Transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ describe('Test Transaction', () => {

await transaction.sign(sender);

const transactionV2 = transaction.getTransactionV1()!;
const transactionPaymentAmount = transactionV2.payload.fields.args.args
const transactionV1 = transaction.getTransactionV1()!;
const transactionPaymentAmount = transactionV1.payload.fields.args.args
.get('amount')!
.toString();

assert.deepEqual(transaction.approvals[0].signer, sender.publicKey);
assert.deepEqual(parseInt(transactionPaymentAmount, 10), 25000000000);
expect(transactionV2.payload.chainName).to.deep.equal('casper-net-1');
expect(transactionV1.payload.chainName).to.deep.equal('casper-net-1');
});
});

0 comments on commit 098fcde

Please sign in to comment.