Browse Source

Fix bouncer signature tests (#1915)

* Fix bouncer signature tests

* Update GSNBouncerSignature.test.js
Nicolás Venturo 6 years ago
parent
commit
19a41980a1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      test/GSN/GSNBouncerSignature.test.js

+ 3 - 2
test/GSN/GSNBouncerSignature.test.js

@@ -32,7 +32,8 @@ contract('GSNBouncerSignature', function ([_, signer, other]) {
           await web3.eth.sign(
           await web3.eth.sign(
             web3.utils.soliditySha3(
             web3.utils.soliditySha3(
               // the nonce is not signed
               // the nonce is not signed
-              data.relayerAddress, data.from, data.encodedFunctionCall, data.txFee, data.gasPrice, data.gas
+              // eslint-disable-next-line max-len
+              data.relayerAddress, data.from, data.encodedFunctionCall, toBN(data.txFee), toBN(data.gasPrice), toBN(data.gas)
             ), signer
             ), signer
           )
           )
         );
         );
@@ -62,7 +63,7 @@ contract('GSNBouncerSignature', function ([_, signer, other]) {
           await web3.eth.sign(
           await web3.eth.sign(
             web3.utils.soliditySha3(
             web3.utils.soliditySha3(
               // eslint-disable-next-line max-len
               // eslint-disable-next-line max-len
-              data.relay_address, data.from, data.encodedFunctionCall, data.txfee, data.gasPrice, data.gas, data.nonce, data.relayHubAddress, data.to
+              data.relayerAddress, data.from, data.encodedFunctionCall, toBN(data.txFee), toBN(data.gasPrice), toBN(data.gas), toBN(data.nonce), data.relayHubAddress, data.to
             ), other
             ), other
           )
           )
         );
         );