diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-23 06:13:50 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-23 06:13:50 +0800 |
commit | 1528fae9ea2bedd84129639a8a37aa90676f9631 (patch) | |
tree | 29b711304cf7a8890b0c5c2b6a686883c6385da2 /ui/app/send.js | |
parent | 3b5749c3bc3334156b311c293a584145f21171e0 (diff) | |
download | tangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.tar tangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.tar.gz tangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.tar.bz2 tangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.tar.lz tangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.tar.xz tangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.tar.zst tangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.zip |
[WIP] Successfully sign a hardcoded transaction, hook up remaining inputs and error validation later
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index f541d741c..02a38deaf 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -522,10 +522,10 @@ SendTransactionScreen.prototype.onSubmit = function () { // return this.props.dispatch(actions.displayWarning(message)) // } - if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) { - message = 'Recipient address is invalid.' - return this.props.dispatch(actions.displayWarning(message)) - } + // if ((!util.isValidAddress(recipient) && !txData) || (!recipient && !txData)) { + // message = 'Recipient address is invalid.' + // return this.props.dispatch(actions.displayWarning(message)) + // } if (txData && !isHex(ethUtil.stripHexPrefix(txData))) { message = 'Transaction data must be hex string.' @@ -536,16 +536,23 @@ SendTransactionScreen.prototype.onSubmit = function () { this.props.dispatch(actions.addToAddressBook(recipient, nickname)) - var txParams = { - // from: this.props.address, - from: this.state.newTx.to, + // var txParams = { + // // from: this.props.address, + // from: this.state.newTx.to, + + // // value: '0x' + value.toString(16), + // value: '0x38d7ea4c68000', // hardcoded - // value: '0x' + value.toString(16), - value: '0x38d7ea4c68000', // hardcoded + // // New: gas will now be specified on this step + // gas: this.state.newTx.gas, + // gasPrice: this.state.newTx.gasPrice + // } - // New: gas will now be specified on this step - gas: this.state.newTx.gas, - gasPrice: this.state.newTx.gasPrice + // Hardcoded + var txParams = { + from: '0x82df11beb942beeed58d466fcb0f0791365c7684', + to: '0xa43126b621db5b4fd98f959d9e5499f655913d34', + value: '0x0', } if (recipient) txParams.to = ethUtil.addHexPrefix(recipient) |