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 27b35ec commit eba704eCopy full SHA for eba704e
packages/thirdweb/src/utils/bytecode/extractMinimalProxyImplementationAddress.test.ts
@@ -51,6 +51,12 @@ describe("extractMinimalProxyImplementationAddress", () => {
51
expect(result).toBe("0xbebebebebebebebebebebebebebebebebebebebe");
52
});
53
54
+ it("should extract address from EIP-7702 delegation designator", () => {
55
+ const bytecode = "0xef0100bebebebebebebebebebebebebebebebebebebebe";
56
+ const result = extractMinimalProxyImplementationAddress(bytecode);
57
+ expect(result).toBe("0xbebebebebebebebebebebebebebebebebebebebe");
58
+ });
59
+
60
it("should return undefined for non-matching bytecode", () => {
61
const bytecode =
62
"0x60806040526000805534801561001457600080fd5b50610150806100246000396000f3fe";
0 commit comments