We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87446a commit 0520ad0Copy full SHA for 0520ad0
packages/thirdweb/src/utils/bytecode/resolveImplementation.ts
@@ -110,7 +110,10 @@ async function getBeaconFromStorageSlot(
110
position:
111
"0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50",
112
});
113
- return `0x${proxyStorage.slice(-40)}`;
+ if (proxyStorage.length >= 40) {
114
+ return `0x${proxyStorage.slice(-40)}`;
115
+ }
116
+ return undefined;
117
} catch {
118
return undefined;
119
}
0 commit comments