app/scripts/keyring-controller.js
// Adds a healthy buffer of gas to an initial gas estimate.
Adds a healthy buffer of gas to an initial gas estimate.
Adds a healthy buffer of gas to an initial gas estimate .
addGasBuffer (gas) {
    const gasBuffer = new BN('100000', 10)
    const bnGas = new BN(ethUtil.stripHexPrefix(gas), 16)
    const correct = bnGas.add(gasBuffer)
    return ethUtil.addHexPrefix(correct.toString(16))
  }
addGasBuffer ( gas ) { const gasBuffer = new BN ( '100000' , 10 ) const bnGas = new BN ( ethUtil . stripHexPrefix ( gas ) , 16 ) const correct = bnGas . add ( gasBuffer ) return ethUtil . addHexPrefix ( correct . toString ( 16 ) ) }
Adds a healthy buffer of gas to an initial gas estimate.
Adds a healthy buffer of gas to an initial gas estimate .