Skip to content

Commit

Permalink
Reduces perceived severity of decoder error
Browse files Browse the repository at this point in the history
  • Loading branch information
douglance committed Jun 29, 2022
1 parent 58b8de5 commit f6de232
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
}
Expand Down

0 comments on commit f6de232

Please sign in to comment.