Skip to content

Commit

Permalink
fix(evm): removed deprecated root key from eth_getTransactionReceipt
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Nov 8, 2024
1 parent 94db838 commit f71403b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/rpc/backend/tx_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ func (r *TransactionReceipt) MarshalJSON() ([]byte, error) {
if r.EffectiveGasPrice != nil {
output["effectiveGasPrice"] = r.EffectiveGasPrice
}
// delete deprecated (pre Byzantium) key which is always set to 0x and fails parsing within hardhat
delete(output, "root")

return json.Marshal(output)
}

Expand Down

0 comments on commit f71403b

Please sign in to comment.