Closed skosito closed 3 months ago
The recent updates significantly enhance the GatewayZEVM
and related contracts by removing checks for zero amounts in execution functions, enabling simpler calls. Additionally, new functions have been introduced, error handling has been improved, and various contract interfaces have been refined. These modifications aim to boost functionality, clarity, and error reporting, ultimately optimizing transaction handling within the system.
Files | Change Summary |
---|---|
v2/pkg/gatewayzevm.sol v2/src/zevm/GatewayZEVM.sol |
Removed checks for amount being zero in execution functions, allowing zero amounts. Introduced new functions and error types, enhancing transaction handling. |
v2/types/* |
Added new data structures and updated interfaces with RevertOptionsStruct and RevertContextStruct . Improved event naming for clarity. |
v2/test/GatewayZEVM.t.sol |
Removed tests related to zero amount checks, indicating a new testing approach. |
v2/types/factories/* |
Updated ABI definitions to reflect new parameters and structures, improving function signatures. |
Objective | Addressed | Explanation |
---|---|---|
Remove check amount == 0 in GatewayZEVM (315) |
β |
π In the meadow, bright and free,
The code now flows with glee!
No more checks for amounts of naught,
Simplified calls, oh what a thought!
In contracts new, we hop and play,
A joyful leap into a brighter day! πΌβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.81%. Comparing base (
2054b10
) to head (a152e7e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
closes: #315
Summary by CodeRabbit
New Features
GatewayZEVM
contract with new functions for asset withdrawals and deposits.RevertOptionsStruct
andRevertContextStruct
for improved error handling and transaction management.Called
,Withdrawn
) to enhance monitoring of contract interactions.IGatewayZEVM
interface, reflecting changes to improve usability and functionality.Bug Fixes
Documentation
Chores