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

Fix ABI Decoding #135

Merged
merged 4 commits into from
Oct 21, 2022
Merged

Fix ABI Decoding #135

merged 4 commits into from
Oct 21, 2022

Conversation

koraykoska
Copy link
Member

ABI tuple decoding was broken for multidimensional arrays (and not implemented for multidimensional tuple arrays). I fixed it and included a few test cases for the edge cases.

@koraykoska koraykoska self-assigned this Oct 21, 2022
@koraykoska koraykoska changed the title Fix/abi tuples Fix ABI Decoding Oct 21, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #135 (a971c64) into master (f76a23b) will increase coverage by 4.03%.
The diff coverage is 94.91%.

@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
+ Coverage   70.86%   74.89%   +4.03%     
==========================================
  Files          63       64       +1     
  Lines        4438     4490      +52     
==========================================
+ Hits         3145     3363     +218     
+ Misses       1293     1127     -166     
Impacted Files Coverage Δ
Sources/ContractABI/ABI/ABIEncoder.swift 92.00% <ø> (+2.00%) ⬆️
...ntractABI/Contract/ContractPromiseExtensions.swift 100.00% <ø> (ø)
Sources/Core/Json/EthereumBlockObject.swift 95.23% <ø> (ø)
Sources/Core/Json/EthereumCall.swift 100.00% <ø> (ø)
Sources/Core/Json/EthereumData.swift 100.00% <ø> (ø)
Sources/Core/Json/EthereumLogObject.swift 0.00% <ø> (ø)
Sources/Core/Json/EthereumQuantity.swift 85.00% <ø> (ø)
Sources/Core/Json/EthereumQuantityTag.swift 100.00% <ø> (ø)
Sources/Core/Json/EthereumSyncStatusObject.swift 88.23% <ø> (ø)
Sources/Core/Json/EthereumTransactionObject.swift 50.00% <ø> (ø)
... and 67 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Florian-S-A-W Florian-S-A-W merged commit 8afa9e4 into master Oct 21, 2022
@koraykoska koraykoska deleted the fix/abi_tuples branch October 21, 2022 17:35
koraykoska added a commit that referenced this pull request Aug 1, 2023
* fix: decoding of single tuple types

* chore: cleanup abi decoder class

* fix: rigorous testing for abi decoding

Co-authored-by: Florian Winkler <[email protected]>
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