|
|
@ -150,13 +150,15 @@ module.exports = class TransactionController extends EventEmitter { |
|
|
|
const txParams = txMeta.txParams |
|
|
|
const txParams = txMeta.txParams |
|
|
|
// ensure value
|
|
|
|
// ensure value
|
|
|
|
txParams.value = txParams.value || '0x0' |
|
|
|
txParams.value = txParams.value || '0x0' |
|
|
|
|
|
|
|
if (!txParams.gasPrice) { |
|
|
|
this.query.gasPrice((err, gasPrice) => { |
|
|
|
this.query.gasPrice((err, gasPrice) => { |
|
|
|
if (err) return cb(err) |
|
|
|
if (err) return cb(err) |
|
|
|
// set gasPrice
|
|
|
|
// set gasPrice
|
|
|
|
txParams.gasPrice = gasPrice |
|
|
|
txParams.gasPrice = gasPrice |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
// set gasLimit
|
|
|
|
// set gasLimit
|
|
|
|
this.txProviderUtils.analyzeGasUsage(txMeta, cb) |
|
|
|
this.txProviderUtils.analyzeGasUsage(txMeta, cb) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getUnapprovedTxList () { |
|
|
|
getUnapprovedTxList () { |
|
|
|