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

[Flow EVM] reducing the scope of deposit to COAs only #5280

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

ramtinms
Copy link
Contributor

closes #5227

@ramtinms ramtinms changed the title [Flow EVM] reduce the scope of deposit to COAs only [Flow EVM] reducing the scope of deposit to COAs only Jan 24, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0979fb2) 55.60% compared to head (e893b21) 55.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5280   +/-   ##
=======================================
  Coverage   55.60%   55.61%           
=======================================
  Files        1003     1003           
  Lines       96785    96785           
=======================================
+ Hits        53818    53824    +6     
+ Misses      38894    38892    -2     
+ Partials     4073     4069    -4     
Flag Coverage Δ
unittests 55.61% <ø> (+<0.01%) ⬆️

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.

@ramtinms ramtinms marked this pull request as ready for review January 24, 2024 07:07
@ramtinms ramtinms requested review from turbolent, janezpodhostnik and sideninja and removed request for janezpodhostnik January 24, 2024 07:07
Copy link
Member

@turbolent turbolent left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines -19 to -27
/// Deposits the given vault into the EVM account with the given address
access(all)
fun deposit(from: @FlowToken.Vault) {
InternalEVM.deposit(
from: <-from,
to: self.bytes
)
}

Copy link
Member

Choose a reason for hiding this comment

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

Maybe also update the FLIP to reflect this change, both in the Cadence code, and also by adding a line or two that explains the rational (can just copy the description of the linked issue).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the FLIP is updated with changes on the Cadence code side but I'll add a small explainer why its only available on the COAs.

@ramtinms ramtinms added this pull request to the merge queue Jan 24, 2024
Merged via the queue into master with commit 098ff23 Jan 24, 2024
51 checks passed
@ramtinms ramtinms deleted the ramtin/5227-evm-reduce-the-scope-of-deposit branch January 24, 2024 18:37
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.

[Flow EVM] deposit calls to regular smart contracts expects different behaviour
4 participants