latticexyz / mud

MUD is a framework for building autonomous worlds
https://mud.dev
MIT License
696 stars 175 forks source link

add cli command to debug revert error data #2788

Open holic opened 2 months ago

holic commented 2 months ago

to decode reverts, you need MUD ABIs + user's ABIs

we do this for users in our tooling that uses viem, but viem/JS may not be within reach to everyone

would be nice to have a command that can take in error data hex as input and get back out a human-readable error (assuming we're able to decode with our own ABI or with ABIs found in the MUD project in the cwd)