mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-25 00:18:07 +00:00
set default gasLimit if data.length < 1 (estimateGasPrice)
This commit is contained in:
parent
f43c7334cc
commit
9b8b5f55a9
@ -790,7 +790,7 @@ const estimateGasPrice = (): AsyncAction => {
|
||||
const re = /^[0-9A-Fa-f]+$/g;
|
||||
if (!re.test(requestedData)) {
|
||||
// to stop calculating
|
||||
dispatch( onGasLimitChange(state.gasLimit) );
|
||||
dispatch( onGasLimitChange(requestedData.length > 0 ? state.gasLimit : network.defaultGasLimit.toString()) );
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user