Skip to content

Commit e0b304a

Browse files
committed
check bytecode length
1 parent 599c6c1 commit e0b304a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/thirdweb/src/utils/bytecode/extractMinimalProxyImplementationAddress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function extractMinimalProxyImplementationAddress(
5454
return `0x${implementationAddress}`;
5555
}
5656

57-
if (bytecode.startsWith("0xef0100")) {
57+
if (bytecode.length === 48 && bytecode.startsWith("0xef0100")) {
5858
const implementationAddress = bytecode.slice(8, 48);
5959
return `0x${implementationAddress}`;
6060
}

0 commit comments

Comments
 (0)