diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-09-14 05:27:27 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-09-14 05:27:27 +0800 |
commit | 77a48fb0b16d7415377b02a3b7d383c9ef86fcb6 (patch) | |
tree | 50807d974aed0f8867739f1ace2c0f1f01ee1dad /app/scripts/controllers/transactions.js | |
parent | 59909601b887b2ed8473bea5a28b852668b2804e (diff) | |
download | tangerine-wallet-browser-77a48fb0b16d7415377b02a3b7d383c9ef86fcb6.tar tangerine-wallet-browser-77a48fb0b16d7415377b02a3b7d383c9ef86fcb6.tar.gz tangerine-wallet-browser-77a48fb0b16d7415377b02a3b7d383c9ef86fcb6.tar.bz2 tangerine-wallet-browser-77a48fb0b16d7415377b02a3b7d383c9ef86fcb6.tar.lz tangerine-wallet-browser-77a48fb0b16d7415377b02a3b7d383c9ef86fcb6.tar.xz tangerine-wallet-browser-77a48fb0b16d7415377b02a3b7d383c9ef86fcb6.tar.zst tangerine-wallet-browser-77a48fb0b16d7415377b02a3b7d383c9ef86fcb6.zip |
ensure that values written to txParams are hex strings
Diffstat (limited to 'app/scripts/controllers/transactions.js')
-rw-r--r-- | app/scripts/controllers/transactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 3ff53e72b..3ee1c22aa 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -212,7 +212,7 @@ module.exports = class TransactionController extends EventEmitter { const txParams = txMeta.txParams const fromAddress = txParams.from // add network/chain id - txParams.chainId = this.getChainId() + txParams.chainId = ethUtil.addHexPrefix(this.getChainId().toString(16)) const ethTx = new Transaction(txParams) await this.signEthTx(ethTx, fromAddress) this.txStateManager.setTxStatusSigned(txMeta.id) |