Closed NicolasWent closed 2 months ago
sol! macro
Hello,
When I decode some function input, I would like to be able to print debug it to see the parameters. It can be useful to debug our code.
Example usage:
if let Ok(decoded) = myCall::abi_decode(&data.input, true) { // here is crashed because it doesn't implement Debug println!("Decoded: {decoded:?}"); }
You can annotate functions and other items with normal rust attributes that will be applied in the generated code.
Component
sol! macro
Describe the feature you would like
Hello,
When I decode some function input, I would like to be able to print debug it to see the parameters. It can be useful to debug our code.
Additional context
Example usage: