Skip to content

Commit 54880b1

Browse files
authored
fix: Set the correct txn v value. (#2592)
fix: Set txn v value. Signed-off-by: ebadiere <[email protected]>
1 parent 03fee22 commit 54880b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/relay/src/formatters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const formatContractResult = (cr: any) => {
173173
to: cr.to?.substring(0, 42),
174174
transactionIndex: nullableNumberTo0x(cr.transaction_index),
175175
type: cr.type === null ? '0x0' : nanOrNumberTo0x(cr.type),
176-
v: cr.type === null ? '0x0' : nanOrNumberTo0x(cr.v),
176+
v: cr.v === null ? '0x0' : nanOrNumberTo0x(cr.v),
177177
value: nanOrNumberTo0x(cr.amount),
178178
// for legacy EIP155 with tx.chainId=0x0, mirror-node will return a '0x' (EMPTY_HEX) value for contract result's chain_id
179179
// which is incompatibile with certain tools (i.e. foundry). By setting this field, chainId, to undefined, the end jsonrpc

0 commit comments

Comments
 (0)