Skip to content

Commit

Permalink
fix: revert message
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed May 7, 2024
1 parent 4f610dc commit 2c9ea8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/L2Factory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract L2Factory {
);
require(
ORIGIN_NETWORK_ID == originNetwork,
"L2Deployer: Not counterpart network"
"L2Factory: Not counterpart network"
);

(address _l2Admin, address _riskManager, address _escrowManager) = abi
Expand Down
2 changes: 1 addition & 1 deletion test/L2Factory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ contract L2FactoryTest is Setup {
vm.prank(address(polygonZkEVMBridge));
l2Factory.onMessageReceived(address(69), l1RollupID, data);

vm.expectRevert("L2Deployer: Not counterpart network");
vm.expectRevert("L2Factory: Not counterpart network");
vm.prank(address(polygonZkEVMBridge));
l2Factory.onMessageReceived(address(l1Deployer), l2RollupID, data);

Expand Down

0 comments on commit 2c9ea8f

Please sign in to comment.