Skip to content

Commit 83dc83b

Browse files
committed
fix: lint fix + check chain_id type and cast it.
1 parent 401a159 commit 83dc83b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/engine/src/configure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Config } from "./client/client/index.js";
1+
import type { Config } from "./client/client/index.js";
22
import { client } from "./client/client.gen.js";
33

44
export type EngineClientOptions = {

packages/insight/src/configure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Config } from "./client/client/index.js";
1+
import type { Config } from "./client/client/index.js";
22
import { client } from "./client/client.gen.js";
33

44
export type InsightClientOptions = {

packages/thirdweb/src/transaction/transaction-store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export async function getPastTransactions(options: {
8585
walletAddress,
8686
});
8787
return result.map((tx) => ({
88-
chainId: tx.chain_id,
88+
chainId:
89+
typeof tx.chain_id === "string" ? Number(tx.chain_id) : tx.chain_id,
8990
receipt: {
9091
status: tx.status === 1 ? "success" : "failed",
9192
to: tx.to_address,

0 commit comments

Comments
 (0)