Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit d80552f

Browse files
committed
Update tests to check for v,r,s
1 parent 68f19e4 commit d80552f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/eth.accounts.signTransaction.js

+6
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,12 @@ describe("eth", function () {
806806
assert.equal(tx.messageHash, test.messageHash, "message hash failed");
807807
assert.equal(tx.transactionHash, test.transactionHash, "tx hash failed");
808808
assert.equal(tx.rawTransaction, test.rawTransaction, "rawtx failed");
809+
810+
if(test.r && test.s && test.v){
811+
assert.equal(tx.v, test.v, "v property of signature failed");
812+
assert.equal(tx.s, test.s, "s property of signature failed");
813+
assert.equal(tx.r, test.r, "r property of signature failed");
814+
}
809815
done();
810816
})
811817
.catch(e => {

0 commit comments

Comments
 (0)