Skip to content

Commit

Permalink
fix: Added comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Badiere <[email protected]>
  • Loading branch information
ebadiere committed Nov 8, 2024
1 parent f88a023 commit 4b5c0ba
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ describe('@web-socket-batch-2 eth_getTransactionByHash', async function () {
expect(txReceipt.to).to.be.eq(accounts[1].address.toLowerCase());
expect(txReceipt.blockHash).to.be.eq(expectedTxReceipt.block_hash.slice(0, 66));
expect(txReceipt.hash).to.be.eq(expectedTxReceipt.hash);
// Must convert to quantity to compare and remove leading zeros
expect(txReceipt.r).to.be.eq(ethers.toQuantity(expectedTxReceipt.r));
expect(txReceipt.s).to.be.eq(ethers.toQuantity(expectedTxReceipt.s));
expect(Number(txReceipt.v)).to.be.eq(expectedTxReceipt.v);
Expand All @@ -136,6 +137,7 @@ describe('@web-socket-batch-2 eth_getTransactionByHash', async function () {
expect(txReceipt.to).to.be.eq(accounts[1].address.toLowerCase());
expect(txReceipt.blockHash).to.be.eq(expectedTxReceipt.block_hash.slice(0, 66));
expect(txReceipt.hash).to.be.eq(expectedTxReceipt.hash);
// Must convert to quantity to compare and remove leading zeros
expect(txReceipt.r).to.be.eq(ethers.toQuantity(expectedTxReceipt.r));
expect(txReceipt.s).to.be.eq(ethers.toQuantity(expectedTxReceipt.s));
expect(Number(txReceipt.v)).to.be.eq(expectedTxReceipt.v);
Expand Down

0 comments on commit 4b5c0ba

Please sign in to comment.