Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ph/txWorkerRedis
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven committed Aug 15, 2024
2 parents ece9b97 + 78d0eff commit e0bc0ba
Show file tree
Hide file tree
Showing 3 changed files with 299 additions and 251 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"pino-pretty": "^10.0.0",
"prisma": "^5.14.0",
"superjson": "^2.2.1",
"thirdweb": "^5.39.0",
"thirdweb": "^5.45.1",
"uuid": "^9.0.1",
"zod": "^3.23.8"
},
Expand Down
3 changes: 2 additions & 1 deletion src/utils/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ export const toTransactionStatus = (status: "success" | "reverted"): number =>
status === "success" ? 1 : 0;

export const toTransactionType = (
type: "legacy" | "eip1559" | "eip2930" | "eip4844",
type: "legacy" | "eip1559" | "eip2930" | "eip4844" | "eip7702",
): number => {
if (type === "legacy") return 0;
if (type === "eip1559") return 1;
if (type === "eip2930") return 2;
if (type === "eip4844") return 3;
if (type === "eip7702") return 4;
throw new Error(`Unexpected transaction type ${type}`);
};
Loading

0 comments on commit e0bc0ba

Please sign in to comment.