Skip to content

Commit

Permalink
error message fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kelemeno committed Oct 7, 2024
1 parent 321ea23 commit f9ef373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l1-contracts/contracts/bridgehub/Bridgehub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ contract Bridgehub is IBridgehub, ReentrancyGuard, Ownable2StepUpgradeable, Paus
if (zkChain == address(0)) {
revert ChainIdNotRegistered(bridgehubData.chainId);
}
if (_originalCaller == IZKChain(zkChain).getAdmin()) {
if (_originalCaller != IZKChain(zkChain).getAdmin()) {
revert Unauthorized(_originalCaller);
}

Expand Down Expand Up @@ -791,7 +791,7 @@ contract Bridgehub is IBridgehub, ReentrancyGuard, Ownable2StepUpgradeable, Paus
if (ctm == address(0)) {
revert AssetIdNotSupported(_assetId);
}
if (settlementLayer[bridgehubData.chainId] != block.chainid) {
if (settlementLayer[bridgehubData.chainId] == block.chainid) {
revert AlreadyCurrentSettlementLayer();
}

Expand Down

0 comments on commit f9ef373

Please sign in to comment.