diff --git a/src/universal-dapp.js b/src/universal-dapp.js index fa41461177..081fddab53 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -672,9 +672,9 @@ UniversalDApp.prototype.runTx = function (data, args, cb) { var address = self.options.getAddress ? self.options.getAddress() : self.getAccounts()[0]; var account = self.accounts[address]; tx = new EthJSTX({ - nonce: new Buffer([account.nonce++]), // @todo count beyond 255 - gasPrice: 1, - gasLimit: gasLimit, + nonce: new BN(account.nonce++), + gasPrice: new BN(1), + gasLimit: new BN(gasLimit, 10), to: to, value: new BN(value, 10), data: new Buffer(data.slice(2), 'hex')