hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

Wrong formatting of pre-EIP155 transactions

Open isavov opened this issue 9 months ago • 0 comments

Description

When an unprotected transaction (pre-EIP155) is returned by the relay using eth_getTransactionByHash for example a chain_id property of 0x is returned which results in incompatibility with certain tooling (for example foundry). The proper behavior is to return a transaction object without a chain_id property.

Steps to reproduce

  1. Start the relay
  2. Broadcast an unprotected transaction for example
cast publish --rpc-url http://localhost:7546/ 0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222 

Additional context

No response

Hedera network

other

Version

v0.47.0

Operating system

None

isavov avatar May 09 '24 12:05 isavov