1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Cast MIN_GAS_LIMIT_DEC to number before passing to minimumGasLimit (#9636)

This commit is contained in:
Dan J Miller 2020-10-19 15:21:36 -02:30 committed by GitHub
parent b1adc0d1e8
commit d44c03b882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ export default class AdvancedGasInputs extends Component {
} }
static defaultProps = { static defaultProps = {
minimumGasLimit: MIN_GAS_LIMIT_DEC, minimumGasLimit: Number(MIN_GAS_LIMIT_DEC),
} }
constructor (props) { constructor (props) {

View File

@ -76,7 +76,7 @@ const mapStateToProps = (state, ownProps) => {
customTotalSupplement = '', customTotalSupplement = '',
extraInfoRow = null, extraInfoRow = null,
useFastestButtons = false, useFastestButtons = false,
minimumGasLimit = MIN_GAS_LIMIT_DEC, minimumGasLimit = Number(MIN_GAS_LIMIT_DEC),
} = modalProps || {} } = modalProps || {}
const { transaction = {} } = ownProps const { transaction = {} } = ownProps
const selectedTransaction = isSwap const selectedTransaction = isSwap