diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-11-11 11:07:12 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-11-11 11:07:12 +0800 |
commit | 17aac2dbc54b733aeed5f16ef2e7bd8378060ca9 (patch) | |
tree | 8948496230e160c389ad57ab8ed26b9d8e3557a3 /app/scripts/keyring-controller.js | |
parent | f665b779cbc0f503198e67c5e10bccd2e0e0d2bb (diff) | |
download | tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.gz tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.bz2 tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.lz tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.xz tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.tar.zst tangerine-wallet-browser-17aac2dbc54b733aeed5f16ef2e7bd8378060ca9.zip |
fix tx data so it has the network id
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r-- | app/scripts/keyring-controller.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index 3ebf02c44..5d9dd51a4 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -38,7 +38,7 @@ module.exports = class KeyringController extends EventEmitter { this._unconfTxCbs = {} this._unconfMsgCbs = {} - this.network = opts.network + this.getNetwork = opts.getNetwork // TEMPORARY UNTIL FULL DEPRECATION: this.idStoreMigrator = new IdStoreMigrator({ @@ -344,13 +344,14 @@ module.exports = class KeyringController extends EventEmitter { var time = (new Date()).getTime() var txId = createId() txParams.metamaskId = txId - txParams.metamaskNetworkId = this.network + txParams.metamaskNetworkId = this.getNetwork() var txData = { id: txId, txParams: txParams, time: time, status: 'unconfirmed', gasMultiplier: configManager.getGasMultiplier() || 1, + metamaskNetworkId: this.getNetwork(), } |