aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-23 06:13:50 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-23 06:13:50 +0800
commit1528fae9ea2bedd84129639a8a37aa90676f9631 (patch)
tree29b711304cf7a8890b0c5c2b6a686883c6385da2 /ui/app
parent3b5749c3bc3334156b311c293a584145f21171e0 (diff)
downloadtangerine-wallet-browser-1528fae9ea2bedd84129639a8a37aa90676f9631.tar.gz
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')
-rw-r--r--ui/app/send.js31
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)