feature/default_network_editable
frankiebee 7 years ago
parent 25cffd21f8
commit 25bc15ba17
  1. 6
      app/scripts/controllers/transactions.js
  2. 5
      app/scripts/lib/tx-utils.js

@ -1,11 +1,9 @@
const EventEmitter = require('events')
const async = require('async')
const extend = require('xtend')
const pify = require('pify')
const clone = require('clone')
const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const EthQuery = require('ethjs-query');
const EthQuery = require('ethjs-query')
const TxProviderUtil = require('../lib/tx-utils')
const getStack = require('../lib/util').getStack
const createId = require('../lib/random-id')
@ -168,7 +166,7 @@ module.exports = class TransactionController extends EventEmitter {
history: [],
}
// add default tx params
await this.addTxDefaults(txMeta),
await this.addTxDefaults(txMeta)
// save txMeta
this.addTx(txMeta)
return txMeta

@ -1,4 +1,3 @@
const async = require('async')
const ethUtil = require('ethereumjs-util')
const Transaction = require('ethereumjs-tx')
const normalize = require('eth-sig-util').normalize
@ -111,10 +110,6 @@ module.exports = class txProvideUtils {
// util
function isUndef (value) {
return value === undefined
}
function bnToHex (inputBn) {
return ethUtil.addHexPrefix(inputBn.toString(16))
}

Loading…
Cancel
Save