-
Notifications
You must be signed in to change notification settings - Fork 20.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accounts/abi: fix method constant flag for solidity 6.0 #20482
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Could you please also add a corresponding unit test in accounts/abi/bind/bind_test.go
?
I added some test to check the presence of free retrieval functions, tests falling on MacOS that doesn't seem related to the code I pushed though, weird.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This patch fix abigen that no longer works with the recent change in solidity 6.0 (e.g: removing
constant
from the ABI in favor of "StateMutability" (nonpayable
,view
,pure
), see https://github.com/ethereum/solidity/releases).The patch conserves the internal
constant
representation and doesn't allow the new more verbose state to be exposed which worries me a bit.