Skip to content

Commit 2c1aadc

Browse files
Fix audittens L05 (#28)
1 parent ae91ae4 commit 2c1aadc

File tree

1 file changed

+1
-4
lines changed
  • l1-contracts/contracts/state-transition/chain-deps/facets

1 file changed

+1
-4
lines changed

l1-contracts/contracts/state-transition/chain-deps/facets/Admin.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,18 +342,15 @@ contract AdminFacet is ZKChainBase, IAdmin {
342342
function forwardedBridgeRecoverFailedTransfer(
343343
uint256 /* _chainId */,
344344
bytes32 /* _assetInfo */,
345-
address _depositSender,
345+
address /* _depositSender */,
346346
bytes calldata _chainData
347347
) external payable override onlyBridgehub {
348348
// As of now all we need in this function is the chainId so we encode it and pass it down in the _chainData field
349349
uint256 protocolVersion = abi.decode(_chainData, (uint256));
350350

351351
require(s.settlementLayer != address(0), "Af: not migrated");
352-
// Sanity check that the _depositSender is the chain admin.
353-
require(_depositSender == s.admin, "Af: not chainAdmin");
354352

355353
uint256 currentProtocolVersion = s.protocolVersion;
356-
357354
require(currentProtocolVersion == protocolVersion, "CTM: protocolVersion not up to date");
358355

359356
s.settlementLayer = address(0);

0 commit comments

Comments
 (0)