Skip to content

Commit 19a4198

Browse files
authored
Fix bouncer signature tests (#1915)
* Fix bouncer signature tests * Update GSNBouncerSignature.test.js
1 parent 6f8e672 commit 19a4198

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/GSN/GSNBouncerSignature.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ contract('GSNBouncerSignature', function ([_, signer, other]) {
3232
await web3.eth.sign(
3333
web3.utils.soliditySha3(
3434
// the nonce is not signed
35-
data.relayerAddress, data.from, data.encodedFunctionCall, data.txFee, data.gasPrice, data.gas
35+
// eslint-disable-next-line max-len
36+
data.relayerAddress, data.from, data.encodedFunctionCall, toBN(data.txFee), toBN(data.gasPrice), toBN(data.gas)
3637
), signer
3738
)
3839
);
@@ -62,7 +63,7 @@ contract('GSNBouncerSignature', function ([_, signer, other]) {
6263
await web3.eth.sign(
6364
web3.utils.soliditySha3(
6465
// eslint-disable-next-line max-len
65-
data.relay_address, data.from, data.encodedFunctionCall, data.txfee, data.gasPrice, data.gas, data.nonce, data.relayHubAddress, data.to
66+
data.relayerAddress, data.from, data.encodedFunctionCall, toBN(data.txFee), toBN(data.gasPrice), toBN(data.gas), toBN(data.nonce), data.relayHubAddress, data.to
6667
), other
6768
)
6869
);

0 commit comments

Comments
 (0)