diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-01-03 07:31:05 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-01-03 07:31:05 +0800 |
commit | 305cda4265e84d520d21c473a796e8f71febc57f (patch) | |
tree | 741799b12ec96803b779ebdbf782f5d6299b7672 | |
parent | 7320095079717b296776ac8e38571020a5d558cf (diff) | |
download | tangerine-wallet-browser-305cda4265e84d520d21c473a796e8f71febc57f.tar tangerine-wallet-browser-305cda4265e84d520d21c473a796e8f71febc57f.tar.gz tangerine-wallet-browser-305cda4265e84d520d21c473a796e8f71febc57f.tar.bz2 tangerine-wallet-browser-305cda4265e84d520d21c473a796e8f71febc57f.tar.lz tangerine-wallet-browser-305cda4265e84d520d21c473a796e8f71febc57f.tar.xz tangerine-wallet-browser-305cda4265e84d520d21c473a796e8f71febc57f.tar.zst tangerine-wallet-browser-305cda4265e84d520d21c473a796e8f71febc57f.zip |
Use chainId parameter instead of second argument
-rw-r--r-- | app/scripts/transaction-manager.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/transaction-manager.js b/app/scripts/transaction-manager.js index 7fcdbe7ca..d426993a4 100644 --- a/app/scripts/transaction-manager.js +++ b/app/scripts/transaction-manager.js @@ -157,8 +157,9 @@ module.exports = class TransactionManager extends EventEmitter { txParams.data = normalize(txParams.data) txParams.gasLimit = normalize(txParams.gasLimit || txParams.gas) txParams.nonce = normalize(txParams.nonce) + txParams.chainId = parseInt(networkId) - const ethTx = new Transaction(txParams, parseInt(networkId)) + const ethTx = new Transaction(txParams) // listener is assigned in metamaskController this.emit(`${txParams.metamaskId}:formatted`, ethTx, address, txParams.metamaskId, cb) |