Repository navigation
Error in logs: Value shows 0.1 ETH when sending 0.01, 0.001, etc #8625
|
"hardhat": "^3.17.0" When I make a transaction of 0.01 ETH, the amount sent is 0.01 ETH but on the console log the Value is 0.1 ETH eth_sendRawTransaction |
Replies: 2 comments 2 replies
|
There is a formatter bug in EDR that matches this symptom. Its For example, for That formatter is used by the console's
If those values are correct, this is a display defect rather than a different amount being sent. A fix needs left-padding before trimming, plus regression cases for leading fractional zeros and exact whole ETH amounts. Including |
|
Thanks for confirming that |
Quick update: the fix (NomicFoundation/edr#1792) has been merged. The latest published EDR, 0.22.2 (October 6), predates it, so the corrected
Value:line will come with the next EDR release and the Hardhat version that picks it up. You can check which one you have withnpm ls @nomicfoundation/edr.In the meantime it is only a display issue in the node's log: as you saw with
eth_getTransactionByHash, the transaction itself carries the right value.