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

Normalize function name to eliminate underscores #22

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

pdyraga
Copy link
Member

@pdyraga pdyraga commented Mar 30, 2020

go-ethereum ABI generator drops underscores and transforms function name to camel case. Instead of __beaconCallback, we get beaconCallback. Instead of open_keep, we get openKeep. Here we introduce the same behaviour to our contract code generators.

go-ethereum ABI code drops leading underscores and transforms function
to a camel case. Instead of __beaconCallback, we get beaconCallback.
Instead of open_keep, we get openKeep. This commit introduces the same
behaviour to our contract code generators.
@pdyraga pdyraga requested a review from Shadowfiend March 30, 2020 22:02
Copy link
Contributor

@Shadowfiend Shadowfiend left a comment

Choose a reason for hiding this comment

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

Awful, but… It works?

@Shadowfiend
Copy link
Contributor

Don't want to merge here until we have a working build using this in keep-core or keep-ecdsa if that seems reasonable @pdyraga ?

@pdyraga
Copy link
Member Author

pdyraga commented Mar 30, 2020

Yep, it works as expected - two PRs referenced above use the code from this PR.

@Shadowfiend
Copy link
Contributor

Rockin', let's do it.

@Shadowfiend Shadowfiend merged commit 7228425 into master Mar 30, 2020
@Shadowfiend Shadowfiend deleted the normalize-functions branch March 30, 2020 23:43
@pdyraga pdyraga added this to the v0.2.0 milestone Apr 13, 2020
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.

2 participants