Skip to content

Commit

Permalink
fix: chain_id should be snake case in tx v3 cosign payload
Browse files Browse the repository at this point in the history
  • Loading branch information
gergold committed Sep 11, 2024
1 parent 4749fb0 commit 6a6950c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/argentSessionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class ArgentSessionService {
calldata: compiledCalldata,
nonce: txDetailsV3.nonce.toString(),
version: num.toBigInt(txDetailsV3.version).toString(10),
chainId: num.toBigInt(txDetailsV3.chainId).toString(10),
chain_id: num.toBigInt(txDetailsV3.chainId).toString(10),
resource_bounds: {
l1_gas: {
max_amount: txDetailsV3.resourceBounds.l1_gas.max_amount.toString(),
Expand Down
2 changes: 1 addition & 1 deletion src/sessionTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export type ArgentServiceSessionTxV3Body = {
calldata: Calldata
nonce: string
version: string
chainId: string
chain_id: string
resource_bounds: {
l1_gas: {
max_amount: string
Expand Down

0 comments on commit 6a6950c

Please sign in to comment.