6

While trying out my contract I get the error: TooManyTopics, what is wrong?

1 Answer 1

5

You can have max. 4 #[ink(topic)] in an #[ink(event)] when using the DefaultEnvironment. The signature of the event, however, is by default one of the topics of the event so that leaves 3. Except if you annotate the event with #[ink(anonymous)] (ref).

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.