zink
zink copied to clipboard
Gather the declaration of errors
Describe the feature
Error has not been implemented yet, ABIs are also required but considered in a separated PR
Solution
#[derive(Errors)]
enum Error {
ERC20InvalidSender { sender: Address }
}
This solution could be similar as the events, see https://github.com/zink-lang/zink/pull/281#pullrequestreview-2475201842