diff --git a/src/util.ts b/src/util.ts index 683802cb..d4d62312 100644 --- a/src/util.ts +++ b/src/util.ts @@ -530,8 +530,7 @@ export async function fetchCalldataDecoder (_data: Uint8Array | string, to: stri throw new Error('Could not find selector in calldata from 4byte') } catch (err) { - err.message = `Fetching calldata failed \n ${err.message}` - console.warn(err) + console.warn(`Fetching calldata failed: ${err.message}`) return { def: null, abi: null } } }