From 19a41980a17b0f5c7a125e8887c13cab26dfe1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Wed, 11 Sep 2019 13:51:07 -0300 Subject: [PATCH] Fix bouncer signature tests (#1915) * Fix bouncer signature tests * Update GSNBouncerSignature.test.js --- test/GSN/GSNBouncerSignature.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/GSN/GSNBouncerSignature.test.js b/test/GSN/GSNBouncerSignature.test.js index bb97ad17c..af61ed6fb 100644 --- a/test/GSN/GSNBouncerSignature.test.js +++ b/test/GSN/GSNBouncerSignature.test.js @@ -32,7 +32,8 @@ contract('GSNBouncerSignature', function ([_, signer, other]) { await web3.eth.sign( web3.utils.soliditySha3( // 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 ) ); @@ -62,7 +63,7 @@ contract('GSNBouncerSignature', function ([_, signer, other]) { await web3.eth.sign( web3.utils.soliditySha3( // 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 ) );