Replies: 2 comments
-
Did you use Metamask to call the method? if so. the error(the first 4 bytes) was thrown by Metamask. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also getting this issue. Am directly using Viem in a server-side application. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm wondering if there is a way to retrieve the full length of the custom error return data, and not just the first 4 bytes i.e. the function signature.
More Context
simulateContract
encounters a custom error, it is able to auto-parse the entire result and return the error name + its arguments as shown below which is great.simulateContract
only seems to be able to return the first 4 bytes of the error signature. Shown below.The reason for needing the entire call data:
simulateContract
takes in the ContractA abi when called.So curious how I could get the entire data!
I've looked at #589 but doesn't address this specific problem
Beta Was this translation helpful? Give feedback.
All reactions