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

eth/abi: support dynamic array encoding #122

Merged
merged 6 commits into from
Jul 1, 2022
Merged

Conversation

peter-chung-xfers
Copy link
Contributor

@peter-chung-xfers peter-chung-xfers commented Jun 23, 2022

  • support dynamic array encoding
  • fix an issue that function signature calculating might be incorrect when there are params in type of dynamic array

spec/eth/abi_spec.rb Outdated Show resolved Hide resolved
@q9f
Copy link
Owner

q9f commented Jun 27, 2022

Thank you! Could you run rufo and remove the stray pp?

peter-chung-xfers and others added 2 commits June 27, 2022 16:24
Co-authored-by: Afri <58883403+q9f@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2022

Codecov Report

Merging #122 (cabebbb) into main (bb640c7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #122   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files          67       67           
  Lines        3855     3899   +44     
=======================================
+ Hits         3845     3889   +44     
  Misses         10       10           
Impacted Files Coverage Δ
lib/eth/abi.rb 100.00% <100.00%> (ø)
lib/eth/contract/function.rb 100.00% <100.00%> (ø)
lib/eth/contract/function_input.rb 100.00% <100.00%> (ø)
spec/eth/abi_spec.rb 100.00% <100.00%> (ø)
lib/eth/client.rb 100.00% <0.00%> (ø)
spec/eth/client_spec.rb 100.00% <0.00%> (ø)
spec/eth/signature_spec.rb 100.00% <0.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@q9f q9f added the enhancement New feature or request label Jun 30, 2022
@q9f
Copy link
Owner

q9f commented Jun 30, 2022

Thank you, can you fix the tests?

@peter-chung-xfers
Copy link
Contributor Author

Thank you, can you fix the tests?

fixed

@q9f q9f merged commit 1f8ff75 into q9f:main Jul 1, 2022
@peter-chung-xfers
Copy link
Contributor Author

Hey @q9f just wondering if you have found any viable testsuite for this?

@q9f
Copy link
Owner

q9f commented Jul 4, 2022

No, but there is an open ticket here: ethereum/tests#691

mculp pushed a commit to mculp/eth.rb that referenced this pull request Aug 1, 2022
* eth/abi: support dynamic array encoding

* eth/abi: support dynamic array encoding

* Update spec/eth/abi_spec.rb

Co-authored-by: Afri <58883403+q9f@users.noreply.github.com>

* fix rspec

* format abi_spec

Co-authored-by: Afri <58883403+q9f@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants