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

[sdk-core] new Operation types and ETH value forwarding #2042

Merged
merged 12 commits into from
Dec 16, 2024

Conversation

kasparkallas
Copy link
Contributor

@kasparkallas kasparkallas commented Dec 13, 2024

TODO: bump version & changelog

### Added
- Handle new Operation types with BatchCall
- Forward ETH value with BatchCall and Operation

@kasparkallas kasparkallas requested a review from d10r December 13, 2024 10:01
@kasparkallas kasparkallas requested review from hellwolf and a team as code owners December 13, 2024 10:01
Copy link

github-actions bot commented Dec 13, 2024

Changelog Reminder

Reminder to update the CHANGELOG.md for any of the modified packages in this PR.

  • CHANGELOG.md modified
  • Double check before merge

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.19%. Comparing base (85696a9) to head (27879a6).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2042      +/-   ##
==========================================
+ Coverage   88.09%   88.19%   +0.10%     
==========================================
  Files         109      109              
  Lines        6793     6851      +58     
  Branches      978      985       +7     
==========================================
+ Hits         5984     6042      +58     
  Misses        807      807              
  Partials        2        2              
Flag Coverage Δ
ethereum-contracts 94.32% <ø> (ø)
sdk-core 88.19% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

const values = operationStructArray
.filter((x) => x.value?.gt(BigNumber.from(0)))
.map((x) => x.value);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A possible situation to protect against would be that the operation with the ETH value would be the first payable call in the set of operations.

@kasparkallas kasparkallas merged commit 49805bf into dev Dec 16, 2024
24 checks passed
@kasparkallas kasparkallas deleted the 2024-12-10-new-sdk-core-operations branch December 16, 2024 09:51
Copy link

XKCD Comic Relif

Link: https://xkcd.com/2042
https://xkcd.com/2042

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