Skip to content

Commit

Permalink
sessions: big numberish referenceChainId
Browse files Browse the repository at this point in the history
  • Loading branch information
attente committed Dec 3, 2024
1 parent 80e3b42 commit b3cf0f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/account/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ export class Account {
wallet: this.address,
nextConfig: config,
signature,
referenceChainId: '1'
referenceChainId: 1
})

// safety check, tracker should have a reverse lookup for the imageHash
Expand Down
2 changes: 1 addition & 1 deletion packages/sessions/src/tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type PresignedConfig = {
wallet: string
nextConfig: commons.config.Config
signature: string
referenceChainId?: string
referenceChainId?: ethers.BigNumberish
}

export type PresignedConfigLink = Omit<PresignedConfig, 'nextConfig'> & { nextImageHash: string }
Expand Down
2 changes: 1 addition & 1 deletion packages/sessions/src/trackers/remote/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class RemoteConfigTracker implements ConfigTracker, migrator.PresignedMig
chainID: '0',
signature: args.signature,
toConfig: encodeConfig(config),
referenceChainID: args.referenceChainId
referenceChainID: args.referenceChainId !== undefined ? BigInt(args.referenceChainId).toString() : undefined
})
}

Expand Down

0 comments on commit b3cf0f9

Please sign in to comment.