mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 01:08:27 +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;
|
const re = /^[0-9A-Fa-f]+$/g;
|
||||||
if (!re.test(requestedData)) {
|
if (!re.test(requestedData)) {
|
||||||
// to stop calculating
|
// to stop calculating
|
||||||
dispatch( onGasLimitChange(state.gasLimit) );
|
dispatch( onGasLimitChange(requestedData.length > 0 ? state.gasLimit : network.defaultGasLimit.toString()) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user