1
0
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:
Szymon Lesisz 2018-05-30 16:23:21 +02:00
parent f43c7334cc
commit 9b8b5f55a9

View File

@ -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;
}