Skip to content

Commit

Permalink
use toFixed instead of toString
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Feb 16, 2024
1 parent 4680e99 commit fcc1021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("test transaction construction", async () => {
const transaction = Transaction.fromTransactionNext(nextTransaction);
assert.deepEqual(transaction.getSender(), Address.fromBech32(plainTransactionNextObject.sender));
assert.deepEqual(transaction.getReceiver(), Address.fromBech32(plainTransactionNextObject.receiver));
assert.equal(transaction.getGasLimit().valueOf().toString(), plainTransactionNextObject.gasLimit.toString());
assert.equal(transaction.getGasLimit().valueOf().toFixed(0), plainTransactionNextObject.gasLimit.toString());
assert.equal(transaction.getValue().toString(), plainTransactionNextObject.value.toString());
assert.equal(transaction.getData().toString(), plainTransactionNextObject.data.toString());
assert.equal(transaction.getChainID().valueOf(), plainTransactionNextObject.chainID);
Expand Down

0 comments on commit fcc1021

Please sign in to comment.