Create LZ OApp CLI
Debugging LayerZero Errors
Debug and decode LayerZero custom errors using CLI tools. List protocol errors and decode error selectors for faster troubleshooting. Step-by-step instructio…
The LayerZero sample project provides powerful tools for listing and decoding custom errors from the protocol and your OApp.
Using the CLI tool, you can identify errors at the protocol level, debug, and resolve issues quickly during development and deployment.
To decode custom error data based on the error selector, run:
The output will provide information about the custom error name, which you can compare against the error list.