File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- import { type Config } from "./client/client/index.js" ;
1+ import type { Config } from "./client/client/index.js" ;
22import { client } from "./client/client.gen.js" ;
33
44export type EngineClientOptions = {
Original file line number Diff line number Diff line change 1- import { type Config } from "./client/client/index.js" ;
1+ import type { Config } from "./client/client/index.js" ;
22import { client } from "./client/client.gen.js" ;
33
44export type InsightClientOptions = {
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments