Skip to content

Commit

Permalink
Update tests to check for v,r,s
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoulai committed Aug 24, 2022
1 parent 68f19e4 commit d80552f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/eth.accounts.signTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,12 @@ describe("eth", function () {
assert.equal(tx.messageHash, test.messageHash, "message hash failed");
assert.equal(tx.transactionHash, test.transactionHash, "tx hash failed");
assert.equal(tx.rawTransaction, test.rawTransaction, "rawtx failed");

if(test.r && test.s && test.v){
assert.equal(tx.v, test.v, "v property of signature failed");
assert.equal(tx.s, test.s, "s property of signature failed");
assert.equal(tx.r, test.r, "r property of signature failed");
}
done();
})
.catch(e => {
Expand Down

0 comments on commit d80552f

Please sign in to comment.