Skip to content

Commit

Permalink
Fix audittens I15 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless authored Nov 29, 2024
1 parent 5c11f85 commit d335fe3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions l1-contracts/contracts/governance/PermanentRestriction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ contract PermanentRestriction is Restriction, IPermanentRestriction, Ownable2Ste
return;
}

if (_call.data.length < 4) {
return;
}

if (bytes4(_call.data[:4]) != IChainAdmin.removeRestriction.selector) {
return;
}
Expand Down

0 comments on commit d335fe3

Please sign in to comment.