-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Make getABI_* calls in wrapper should be static #2079
Conversation
Signed-off-by: tonykwok1992 <[email protected]>
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.
Instead of adding a new empty solidity file for testing, lets reuse any existing .sol file
contract AbiFuncs { | ||
|
||
|
||
function hi(uint256 x) public { |
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.
This seems like an empty solidity file, can't we reuse any pre-existing .sol file for the test?
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 also want to test java file output matches, if I use any existing file, I will have to modify those java files to add getABI* calls, but that will actually invalidate the test case with abiFunc=false
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.
Okay got it
@@ -0,0 +1 @@ | |||
[{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"hi","outputs":[],"stateMutability":"nonpayable","type":"function"}] |
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.
Same lets use any existing solidity and compile .abi and .bin files
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
Signed-off-by: tonykwok1992 <[email protected]> Signed-off-by: Julius Lauterbach <[email protected]>
Signed-off-by: tonykwok1992 <[email protected]> Signed-off-by: Julius Lauterbach <[email protected]>
What does this PR do?
getABI_* call in wrapper should be static method. we do not need an instance of wrapper to encode function
Where should the reviewer start?
All files
Why is it needed?
we do not need an instance of wrapper to encode function
Checklist