zink icon indicating copy to clipboard operation
zink copied to clipboard

Gather the declaration of errors

Open clearloop opened this issue 1 year ago • 6 comments

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

clearloop avatar Oct 30 '24 20:10 clearloop