Skip to content
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

Rename externalBalance to getExternalBalance #334

Merged
merged 1 commit into from
Aug 19, 2018
Merged

Conversation

axic
Copy link
Member

@axic axic commented Aug 19, 2018

Counterpart of ewasm/design#120

@@ -235,13 +235,13 @@ namespace hera {
return Literal();
}

if (import->base == Name("getBalance")) {
if (import->base == Name("getExternalBalance")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather have things in line with existing naming schemes like RPC.
In that can, getExternal* would become get get*At which, in my opinion, makes more sense upon reading.

Copy link
Member Author

@axic axic Aug 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in line with the EEI, we've agreed that a complete proposal should be made on the EEI to change all occurences of getExternal.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok the name change should probably be introduced in a later revision, as it would probably break a lot of tests for the current one.

Maybe having multiple aliases for EEI methods would be good for backwards compatibility, at the cost of clarity

@axic axic merged commit 8780d31 into master Aug 19, 2018
@axic axic deleted the externalbalance branch August 19, 2018 21:45
@axic axic removed the in progress label Aug 19, 2018
@codecov-io
Copy link

Codecov Report

Merging #334 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #334   +/-   ##
=======================================
  Coverage   67.55%   67.55%           
=======================================
  Files           5        5           
  Lines         860      860           
  Branches      122      122           
=======================================
  Hits          581      581           
  Misses        251      251           
  Partials       28       28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants