-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update ERC827.sol to not use function overloading #871
Conversation
@elie222 can you make the changes in the tests to run with the new method names? |
Yes. I will do this
…On Thu, 5 Apr 2018, 03:56 Augusto Lemble, ***@***.***> wrote:
@elie222 <https://github.com/elie222> can you make the changes in the
tests to run with the new method names?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#871 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC8oX5MLiF8Am6vFGnW-YcCnuk-4pTngks5tlXmjgaJpZM4THrfL>
.
|
I updated the tests and they're all passing now. |
@elie222 They are not passing in travis, https://travis-ci.org/OpenZeppelin/zeppelin-solidity/jobs/362430479#L3538 |
Yup. Sorry. Missed running some tests locally. Should work on Travis now |
@elie222 great, with the new functions names the |
Yes makes sense. Will try and get around to it tomorrow.
…On Thu, 5 Apr 2018, 04:42 Augusto Lemble, ***@***.***> wrote:
@elie222 <https://github.com/elie222> great, with the new functions names
the findMethod function in ERC827Token tests wont be needed, can you
remove it too, it will make tests more readable?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#871 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC8oXx8yifybun5hHPNlM4pTkmtEyM4Aks5tlYSMgaJpZM4THrfL>
.
|
Maybe to keep both method names? |
If we're against this because it's considered "dangerous", then would be
best not to? It's early enough in the life of erc827 that we can still
remove the previous names?
…On Thu, 5 Apr 2018, 09:32 Anton Bukov, ***@***.***> wrote:
Maybe to keep both method names?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#871 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC8oX_LVoZZ7Ib8bfRNOfocCpoXPe7mrks5tlcingaJpZM4THrfL>
.
|
is early enough, we dont want want duplicated code, I think we should keep the new names that avoid overloading. |
@AugustoL no need to duplicate code, |
Removed |
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.
The changes LGTM. @AugustoL I'd say we merge this as soon as this is updated in the EIP, what do you think? Or would you rather merge this right away?
FWIW, I'm not a fan of avoiding function overloading just because it's part of the philosophy of one of the high-level languages available for the EVM. But if the ERC is changing, I think it's fair to change it here as well.
@elie222 can you fix the conflicts in ERC827.sol so I can merge it? |
Done |
🚀 Description
Renaming of ERC827 function names to avoid using function overloading. This also needs to be accepted by Ethereum team.
This causes problems with projects such as Vyper:
vyperlang/vyper#738
npm run lint:all:fix
).