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

Cleaning up ABI encoding to correctly encode function calls as tuples #36

Merged
merged 2 commits into from
Sep 14, 2018

Conversation

pr0zac
Copy link
Contributor

@pr0zac pr0zac commented Sep 14, 2018

Also removing the FunctionSelector class and just wrapping everything into Function since its cleaner that way. Also adding other Int/UInt ABIValueTypes.

@pr0zac pr0zac force-pushed the fixing_abi_encoding branch from 43c42a9 to fc8cc58 Compare September 14, 2018 17:40
EtherKit/ABI.swift Show resolved Hide resolved
EtherKit/ABI.swift Show resolved Hide resolved
for tupleElem in value {
let elemData = tupleElem.encode()

if tupleElem.isDynamic {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: probably better as a guard

@pr0zac pr0zac merged commit 9478b54 into master Sep 14, 2018
@pr0zac pr0zac deleted the fixing_abi_encoding branch September 14, 2018 18:31
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