Skip to content

Commit 78d0eff

Browse files
authored
Added Fix for eip7702 (#609)
* Updates: Removed logs + queuedAt indexed * Added Fix for eip7702
1 parent 59ad3ba commit 78d0eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/sdk.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ export const toTransactionStatus = (status: "success" | "reverted"): number =>
1818
status === "success" ? 1 : 0;
1919

2020
export const toTransactionType = (
21-
type: "legacy" | "eip1559" | "eip2930" | "eip4844",
21+
type: "legacy" | "eip1559" | "eip2930" | "eip4844" | "eip7702",
2222
): number => {
2323
if (type === "legacy") return 0;
2424
if (type === "eip1559") return 1;
2525
if (type === "eip2930") return 2;
2626
if (type === "eip4844") return 3;
27+
if (type === "eip7702") return 4;
2728
throw new Error(`Unexpected transaction type ${type}`);
2829
};

0 commit comments

Comments
 (0)