-
Notifications
You must be signed in to change notification settings - Fork 48
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
txns of type NORMAL should not call contracts #241
txns of type NORMAL should not call contracts #241
Conversation
Tests to be added: On hardfork_version >= 4Should work:
Should fail:
Then repeat the above using On hardfork_version < 4Should fail:
The same for Should work:
The same for |
e1e424d
to
0bc2cc8
Compare
bd568d1
to
0bc2cc8
Compare
09a876d
to
ccfc0c6
Compare
@ultrafellen Do you agree with this policy? |
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.
I'm not sure about the code, but I agree with the policy.
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
These changes are intended to be implemented on hardfork V4:
NORMAL
should not call smart contractsTRANSFER
can only interface with smart contracts on these conditions:amount
must be greater than0
To transfer native Aergo tokens to a smart contract for a function that is not named "default" or that requires arguments, we must use a transaction with type
CALL