diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-11-23 04:23:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 04:23:55 +0800 |
commit | e61d792832381a66e7393d32e1bc2c359834f919 (patch) | |
tree | 8ecd86cae8bb50fe928ce591529ec02a8fba557d /ui/app/conf-tx.js | |
parent | 1a8d95f5627aac6e122f7a1c905d2d23f5a0758d (diff) | |
parent | 8261cf232d5d7225f83747460cb7dbed52d5f8b8 (diff) | |
download | tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.gz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.bz2 tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.lz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.xz tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.tar.zst tangerine-wallet-browser-e61d792832381a66e7393d32e1bc2c359834f919.zip |
Merge pull request #869 from MetaMask/dev-cleanup
Dev Cleanup Package
Diffstat (limited to 'ui/app/conf-tx.js')
-rw-r--r-- | ui/app/conf-tx.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index 8d23adfe5..0b1dcac45 100644 --- a/ui/app/conf-tx.js +++ b/ui/app/conf-tx.js @@ -18,7 +18,7 @@ function mapStateToProps (state) { return { identities: state.metamask.identities, accounts: state.metamask.accounts, - selectedAddress: state.metamask.selectedAddress, + selectedAccount: state.metamask.selectedAccount, unconfTxs: state.metamask.unconfTxs, unconfMsgs: state.metamask.unconfMsgs, index: state.appState.currentView.context, @@ -90,12 +90,12 @@ ConfirmTxScreen.prototype.render = function () { // Properties txData: txData, key: txData.id, - selectedAddress: state.selectedAddress, + selectedAccount: state.selectedAccount, accounts: state.accounts, identities: state.identities, insufficientBalance: this.checkBalnceAgainstTx(txData), // Actions - buyEth: this.buyEth.bind(this, txParams.from || state.selectedAddress), + buyEth: this.buyEth.bind(this, txParams.from || state.selectedAccount), sendTransaction: this.sendTransaction.bind(this, txData), cancelTransaction: this.cancelTransaction.bind(this, txData), signMessage: this.signMessage.bind(this, txData), @@ -120,7 +120,7 @@ ConfirmTxScreen.prototype.checkBalnceAgainstTx = function (txData) { var state = this.props var txParams = txData.txParams || {} - var address = txParams.from || state.selectedAddress + var address = txParams.from || state.selectedAccount var account = state.accounts[address] var balance = account ? account.balance : '0x0' |