I am facing an issue with the OpenBrush PSP37
smart contract while calling the mint
function. I receive a Contract Reverted!
error with a TooManyTopics
dispatch error. However, upon inspecting the substrate blockchain code, it specifies that up to 4 topics are allowed. In my case, I am only using 4 topics, as visible in the attached screenshot. Could someone please help me understand why I am encountering the "TooManyTopics" error? Surprisingly, when I reduce the number of topics to 3, the contract works fine.
I have previously addressed this issue, and it was recommended that we adhere to a maximum limit of four topics. However, even when we precisely utilize four topics, we continue to encounter the same error. You can find our previous discussion at this Stack Overflow post :enter link description here
Could anyone shed some light on this issue? Is there a possible explanation for receiving the TooManyTopics
error even when using the maximum allowed number of topics?
Thank you for your valuable insights and suggestions.