Skip to content

Commit 012208f

Browse files
committed
Remove zero check in detectUsingOpenZeppelinSlot
1 parent 8975c87 commit 012208f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/nextjs/utils/abi-ninja/proxyContracts.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ export const detectProxyTarget = async (proxyAddress: Address, client: UsePublic
9595
slot: OPEN_ZEPPELIN_IMPLEMENTATION_SLOT,
9696
});
9797
const resolvedAddress = readAddress(implementationAddr);
98-
if (resolvedAddress === "0x" + "0".repeat(40)) {
99-
throw new Error("Zero address in OpenZeppelin implementation slot");
100-
}
10198
return resolvedAddress;
10299
};
103100

0 commit comments

Comments
 (0)