Skip to content

Commit

Permalink
Merge pull request #25 from argentlabs/fix/tx-v3-chain-id
Browse files Browse the repository at this point in the history
fix: chain_id should be snake case in tx v3 cosign payload
  • Loading branch information
gergold authored Sep 11, 2024
2 parents 4749fb0 + 6a6950c commit 12ff405
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 12ff405

Please sign in to comment.