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 59ad3ba commit 78d0effCopy full SHA for 78d0eff
src/utils/sdk.ts
@@ -18,11 +18,12 @@ export const toTransactionStatus = (status: "success" | "reverted"): number =>
18
status === "success" ? 1 : 0;
19
20
export const toTransactionType = (
21
- type: "legacy" | "eip1559" | "eip2930" | "eip4844",
+ type: "legacy" | "eip1559" | "eip2930" | "eip4844" | "eip7702",
22
): number => {
23
if (type === "legacy") return 0;
24
if (type === "eip1559") return 1;
25
if (type === "eip2930") return 2;
26
if (type === "eip4844") return 3;
27
+ if (type === "eip7702") return 4;
28
throw new Error(`Unexpected transaction type ${type}`);
29
};
0 commit comments