-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bug: JSON-RPC serialisation of hexadecimal strings in transaction receipt #1328
Comments
nice catch @bguiz ! |
In case someone has this issue until this fix is merged, the problem happens with ethersproject and the solution is to change the provider filters
|
After looking at the doc : https://eth.wiki/json-rpc/API (QUANTITY field type) |
yep @patogallaiovlabs I'll close BTW detailed description here: ethers-io/ethers.js#952 (comment) (the bug appears to be that ethers.js does not implement transaction validation correctly, and rskj is spec compliant) |
Not sure if closed issues are monitored, but RSK incorrectly implements EIP-658. If the Reading the EIP, I can understand the confusion though.
To better format this, it should probably have read: For blocks where block.number >= BYZANTIUM_FORK_BLKNUM, the intermediate state You can verify this against Geth, Parity, Besu (Hyperledger) and EthereumJS. For now ethers is adding additional logic in the receipt parser to handle this, but it would also be ideal for upstream dependencies to implement the standard uniformly. Thanks! :) |
Re-opening so as to look into the following:
Additionally, in some cases (when a transaction fails) |
We never used the root field in RSK testnet nor mainnet. It was not A HARD FORK for us. So, I propose to remove the root field from transaction receipt DTO. My code in https://github.com/ajlopez/rskj/tree/remtxrroot |
@bguiz can we close this issue? |
What
transactionIndex
andstatus
fields as follows:transactionIndex: '0x0'
-->transactionIndex: '0x00'
status: '0x1'
-->status: '0x01'
Why
0x
prefix followed by an even number of characters (0
throughf
), with a minimum of 2 characters (excluding the prefix).Refs
isHexString
validator present ethers.jsDetails
The text was updated successfully, but these errors were encountered: