Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

StateMutability error when parsing json abi that contains an event #13

Closed
DrasiusMajere opened this issue Nov 18, 2018 · 2 comments · Fixed by #17
Closed

StateMutability error when parsing json abi that contains an event #13

DrasiusMajere opened this issue Nov 18, 2018 · 2 comments · Fixed by #17

Comments

@DrasiusMajere
Copy link

I'm using solidity version 0.5.0
when json abi string contains an event parameter the parse function still looks for statemutability key that in my case event types dont have that key in the interface, and the switch clause in the function in that case throws an error.
That error is easy to solve but I'm doing tests so finally I ripped that part from abi. you can watch events to know when an state changes.

@maxholman
Copy link
Contributor

@DrasiusMajere Just opened PR #17 which resolves this one

@DrasiusMajere
Copy link
Author

It's working, but only moving the conditional to the beginning of the loop for is enough if you want to reuse var type.
thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants