@ -7,6 +7,7 @@ const actions = require('./actions')
const util = require ( './util' )
const util = require ( './util' )
const numericBalance = require ( './util' ) . numericBalance
const numericBalance = require ( './util' ) . numericBalance
const addressSummary = require ( './util' ) . addressSummary
const addressSummary = require ( './util' ) . addressSummary
const isHex = require ( './util' ) . isHex
const EthBalance = require ( './components/eth-balance' )
const EthBalance = require ( './components/eth-balance' )
const ethUtil = require ( 'ethereumjs-util' )
const ethUtil = require ( 'ethereumjs-util' )
const RangeSlider = require ( './components/range-slider' )
const RangeSlider = require ( './components/range-slider' )
@ -190,7 +191,7 @@ SendTransactionScreen.prototype.render = function () {
marginBottom : '16px' ,
marginBottom : '16px' ,
} ,
} ,
} , [
} , [
'Transactional Data (optional)' ,
'Transaction Data (optional)' ,
] ) ,
] ) ,
// 'data' field
// 'data' field
@ -312,6 +313,11 @@ SendTransactionScreen.prototype.onSubmit = function (gasPrice) {
return this . props . dispatch ( actions . displayWarning ( message ) )
return this . props . dispatch ( actions . displayWarning ( message ) )
}
}
if ( ! isHex ( ethUtil . stripHexPrefix ( txData ) ) && txData ) {
message = 'Transaction data must be hex string.'
return this . props . dispatch ( actions . displayWarning ( message ) )
}
this . props . dispatch ( actions . hideWarning ( ) )
this . props . dispatch ( actions . hideWarning ( ) )
var txParams = {
var txParams = {