-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix : #234 Missing checks for address(0x0) when updating address stat… (
#240) * Fix : #234 Missing checks for address(0x0) when updating address state variables Summary of Changes Made Input Validation in setL1L2CollectionMapping: Added checks to ensure collectionL1 is not address(0) and collectionL2 is not 0 to prevent invalid mappings. Event Emission: Emitted L1L2CollectionMappingUpdated after setting the mapping for transparency. * add setL1L2collectionMapping test in Bridge.t.sol * Update Bridge.sol * Bridge.sol * Update Bridge.t.sol rename test functions * Update Bridge.sol remove require and use if and revert or error * Update Bridge.t.sol * Update Bridge.t.sol vm.expectRevert(InvalidL2AddressError.selector);
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters