This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
[BUG] eth_getTransactionByHash returns incorrect v parameter #566
Labels
bug
Something isn't working
Response of Godwoken RPC call
eth_getTransactionByHash
returns incorrectv
value - it should be along the formula:vRpcShouldReturn = (realV + chainId * 2 + 35)
according to EIP-155Right now Godwoken mainnet for RPC call
eth_getTransactionByHash
for transaction0x38ec95202ddd22a3a5ff63c16734cfe723b5f1ec09a39306133ec829d357754c
returns this:V should be equal to 142839 as it's would be according to EIP-155 equation
71402 * 2 + 35
(71402 is Godwoken mainnet chainID).Performing same call on Goerli chain for transaction
0x08314eb96ffef2a8a20d6d99105199fbb0fd624118c846225c8fc1208eec5a84
returns this:So
0 + 2*5 + 35
equals 45 (2d
in hex)I have also prepared test calculates transaction hash using hardhat tools and compares it with one we get from RPC call.
This incorrect value is issue for
hardhat fork
feature which allows to make a snapshot of chain for debugging purpose.The text was updated successfully, but these errors were encountered: