Skip to content

Commit

Permalink
Fix audittens I23 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless authored Dec 2, 2024
1 parent a9a28a2 commit a71a049
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l1-contracts/contracts/bridgehub/Bridgehub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ contract Bridgehub is IBridgehub, ReentrancyGuard, Ownable2StepUpgradeable, Paus
address token = __DEPRECATED_baseToken[_chainId];
require(token != address(0), "BH: token not set");

baseTokenAssetId[_chainId] = DataEncoding.encodeNTVAssetId(block.chainid, token);
bytes32 assetId = DataEncoding.encodeNTVAssetId(block.chainid, token);

baseTokenAssetId[_chainId] = assetId;
assetIdIsRegistered[assetId] = true;

address chainAddress = IChainTypeManager(ctm).getZKChainLegacy(_chainId);
if (chainAddress == address(0)) {
Expand Down

0 comments on commit a71a049

Please sign in to comment.