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

feat: finalize nodev20 branch #388

Open
wants to merge 14 commits into
base: node/v20.0.2
Choose a base branch
from
Open

Conversation

skosito
Copy link
Contributor

@skosito skosito commented Oct 14, 2024


interface INotSupportedMethods {
error CallOnRevertNotSupported();
error ZETANotSupported();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is there something in GatewayEVM to revert with this?

Copy link
Member

Choose a reason for hiding this comment

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

What do you mean?

We should prevent using callOnRevert and ZETA functions on EVM side as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

could you please clarify which functions should be disabled on evm side in context of zeta?
deposit and call are either erc20 or gas, which both deposit zrc20

should we disable using zeta connectors on evm side?

Copy link
Member

Choose a reason for hiding this comment

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

should we disable using zeta connectors on evm side?

Yes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think these are minimal changes for that 9892e63

no need to add reverts in zeta connector since it wont be called from protocol, but even if called, these transfer methods back to connector will revert

on external deposit method using zeta token it will revert as well

@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 70.58824% with 15 lines in your changes missing coverage. Please review.

Please upload report for BASE (node/v20.0.2@6af8595). Learn more about missing BASE report.

Files with missing lines Patch % Lines
v2/contracts/evm/GatewayEVM.sol 60.00% 8 Missing ⚠️
v2/contracts/zevm/GatewayZEVM.sol 50.00% 7 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             node/v20.0.2     #388   +/-   ##
===============================================
  Coverage                ?   83.19%           
===============================================
  Files                   ?        7           
  Lines                   ?      369           
  Branches                ?      124           
===============================================
  Hits                    ?      307           
  Misses                  ?       61           
  Partials                ?        1           

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

@skosito skosito linked an issue Oct 14, 2024 that may be closed by this pull request
Copy link
Member

@lumtis lumtis left a comment

Choose a reason for hiding this comment

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

LGTM


interface INotSupportedMethods {
error CallOnRevertNotSupported();
error ZETANotSupported();
Copy link
Member

Choose a reason for hiding this comment

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

What do you mean?

We should prevent using callOnRevert and ZETA functions on EVM side as well

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.

Finalize node/v20.0.2 branch
4 participants