1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Fix bug where gas param was not a string

Prevented sending transactions.

Fixes #2598
This commit is contained in:
Dan Finlay 2017-11-17 13:23:25 -08:00 committed by Chi Kei Chan
parent fbd04a6af6
commit c6713e93ad
2 changed files with 3 additions and 3 deletions

View File

@ -244,7 +244,7 @@ CustomizeGasModal.prototype.render = function () {
min: 1,
// max: 100000,
step: 1,
onChange: value => this.convertAndSetGasLimit(value),
onChange: value => this.convertAndSetGasLimit(String(value)),
title: 'Gas Limit',
copy: 'We calculate the suggested gas limit based on network success rates.',
}),

View File

@ -3,8 +3,8 @@ const { conversionUtil, multiplyCurrencies } = require('../../conversion-util')
const MIN_GAS_PRICE_HEX = (100000000).toString(16)
const MIN_GAS_PRICE_DEC = '100000000'
const MIN_GAS_LIMIT_HEX = (21000).toString(16)
const MIN_GAS_LIMIT_DEC = 21000
const MIN_GAS_LIMIT_DEC = '21000'
const MIN_GAS_LIMIT_HEX = (parseInt(MIN_GAS_LIMIT_DEC)).toString(16)
const MIN_GAS_PRICE_GWEI = ethUtil.addHexPrefix(conversionUtil(MIN_GAS_PRICE_HEX, {
fromDenomination: 'WEI',