Skip to content

Commit d9bce85

Browse files
committed
fix: support metadata-stripped SafeProxy
1 parent 29c5acf commit d9bce85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/IsASafe.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ library IsASafe {
99

1010
function isProbablyASafe(address account) internal view {
1111
uint256 codesize = account.code.length;
12-
// observed Safe proxy codesize range is 110 (v1.0.0) to 171 (v1.3.0)
13-
require(codesize > 80 && codesize < 240, NotSafeProxy(account));
12+
// observed Safe proxy codesize range is 60 (stripped v1.5.0) to 171 (v1.3.0)
13+
require(codesize > 56 && codesize < 240, NotSafeProxy(account));
1414
address implementation = IProxy(account).masterCopy();
1515
// observed Safe masterCopy size is 20869 (v1.5.0) to 24421 (v1.4.1)
1616
require(implementation.code.length > 8000, UnusualSafeMasterCopy(account, implementation));

0 commit comments

Comments
 (0)