Skip to content

Commit

Permalink
fix: Set the correct txn v value. (#2592)
Browse files Browse the repository at this point in the history
fix: Set txn v value.

Signed-off-by: ebadiere <[email protected]>
  • Loading branch information
ebadiere authored Jun 12, 2024
1 parent 03fee22 commit 54880b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relay/src/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const formatContractResult = (cr: any) => {
to: cr.to?.substring(0, 42),
transactionIndex: nullableNumberTo0x(cr.transaction_index),
type: cr.type === null ? '0x0' : nanOrNumberTo0x(cr.type),
v: cr.type === null ? '0x0' : nanOrNumberTo0x(cr.v),
v: cr.v === null ? '0x0' : nanOrNumberTo0x(cr.v),
value: nanOrNumberTo0x(cr.amount),
// for legacy EIP155 with tx.chainId=0x0, mirror-node will return a '0x' (EMPTY_HEX) value for contract result's chain_id
// which is incompatibile with certain tools (i.e. foundry). By setting this field, chainId, to undefined, the end jsonrpc
Expand Down

0 comments on commit 54880b1

Please sign in to comment.