-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Add a simple wrapper for address. #1773
Conversation
# Conflicts: # contracts/crowdsale/distribution/RefundableCrowdsale.sol # contracts/drafts/SignatureBouncer.sol # contracts/drafts/TokenVesting.sol # contracts/mocks/ERC165/ERC165InterfacesSupported.sol # contracts/token/ERC20/ERC20.sol
…-solidity # Conflicts: # contracts/token/ERC20/ERC20Burnable.sol
It seems like I should also add test example at |
Hello @Skyge, thank you for this contribution! Yes, we should add this in
All three tests should check that the input address matches the output. |
Hi, @nventuro , do you mean |
Yes, my bad. Some of the mocks are inconsistently named. |
@nventuro Hi, I have thought for the test case for some time, so my process will be like this: First I need a simple contract which can receive Ether, then I use an account to call a function mainly including |
I don't think you'll need to do any of that, because the A function that receives an address, calls |
Emmm, but if I send an address to such a function, it returns an address, how can I know it is a really |
@nventuro I notice there is a constant in the |
I don't think this is necessary, since using this address is very uncommon: I'd just use the |
You can see at the line 7, I define a constant: |
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.
Great work @Skyge, thank you very much for your contribution! 🎉
It is my pleasure! |
Fix #1771.