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

Support Solidity 0.6 & ABIEncoderV2 #258

Closed
3 tasks
skywinder opened this issue Apr 6, 2020 · 3 comments
Closed
3 tasks

Support Solidity 0.6 & ABIEncoderV2 #258

skywinder opened this issue Apr 6, 2020 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@skywinder
Copy link
Collaborator

Solidity 0.6

  • There are new fallback functions appeared in Solidity 0.6

ABIEncoderV2:

  • The ABI JSON will now include a new type: ‘tuple’

  • Add the ability to pass struct type into a function.

@skywinder skywinder added enhancement New feature or request help wanted Extra attention is needed labels Sep 23, 2020
@dangell7
Copy link

dangell7 commented Oct 1, 2020

Hey I'm getting an error;

Thread 1: Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value

on the following: (abiRecord.stateMutability == "payable" || abiRecord.payable!) in the parseFunction

I'm using a v6 solidity contract... Do you think this version is the issue?

@dangell7
Copy link

dangell7 commented Oct 1, 2020

FIXED: Change abiRecord.payable! to abiRecord.payable != nil

I'm rocking a v6 token contract so I can update you as I go

@sporkspatula
Copy link

@skywinder was this implemented? We are trying to encode structs into a function, but the data is not working. I am able to easily pass non-struct data into a function and have it encoded correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants