Skip to content

Commit

Permalink
Remove zero check in detectUsingOpenZeppelinSlot
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Sep 13, 2024
1 parent 8975c87 commit 012208f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/nextjs/utils/abi-ninja/proxyContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ export const detectProxyTarget = async (proxyAddress: Address, client: UsePublic
slot: OPEN_ZEPPELIN_IMPLEMENTATION_SLOT,
});
const resolvedAddress = readAddress(implementationAddr);
if (resolvedAddress === "0x" + "0".repeat(40)) {
throw new Error("Zero address in OpenZeppelin implementation slot");
}
return resolvedAddress;
};

Expand Down

0 comments on commit 012208f

Please sign in to comment.