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

refactor and test: addressing internal audit and adding full coverage #124

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

kupermind
Copy link
Collaborator

  • Addressing internal audit with small refactoring;
  • Adding full test coverage.

@kupermind kupermind requested review from 77ph and mariapiamo March 6, 2024 18:23
Comment on lines +381 to +382
if (verifierL2s[i].code.length == 0) {
revert ContractOnly(verifierL2s[i]);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Checking that the L2 verifier is a contract

Comment on lines +28 to +29
bytes4 targetSelector = bytes4(data);
targetSelectorChainId |= uint256(uint32(targetSelector)) << 160;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Small code optimization

Comment on lines -27 to +22
bytes4 public constant CREATE_TICKET_UNSAFE = bytes4(keccak256(bytes("unsafeCreateRetryableTicket(address,uint256,uint256,address,address,uint256,uint256,uint256,bytes)")));
bytes4 public constant CREATE_TICKET_UNSAFE = bytes4(keccak256(bytes("unsafeCreateRetryableTicket(address,uint256,uint256,address,address,uint256,uint256,bytes)")));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Bugs here and there ;)

@kupermind kupermind merged commit 57f524b into v1.1.11-internal-audit Mar 20, 2024
3 checks passed
@kupermind kupermind deleted the test_guard_cm branch March 20, 2024 14:23
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.

1 participant