diff --git a/internal/jsre/deps/web3.js b/internal/jsre/deps/web3.js index 7a09fddab033..6a72e268529f 100644 --- a/internal/jsre/deps/web3.js +++ b/internal/jsre/deps/web3.js @@ -3706,6 +3706,13 @@ var inputDefaultBlockNumberFormatter = function (blockNumber) { return inputBlockNumberFormatter(blockNumber); }; +var inputBlockNumberOrHashFormatter = function (numberOrHash) { + if (utils.isString(numberOrHash) && numberOrHash.indexOf('0x') === 0) { + return numberOrHash; + } + return inputBlockNumberFormatter(numberOrHash); +}; + var inputBlockNumberFormatter = function (blockNumber) { if (blockNumber === undefined) { return undefined;