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
…2108)

* fix(evm): removed deprecated root key from eth_getTransactionReceipt

* chore: changelog update
  • Loading branch information
onikonychev authored Nov 8, 2024
1 parent 8907a61 commit 6ec8200
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ tests for race conditions within funtoken precompile
- [#2105](https://github.com/NibiruChain/nibiru/pull/2105) - test(evm): precompile call with revert
- [#2107](https://github.com/NibiruChain/nibiru/pull/2107) -
feat(evm-funtoken-precompile): Implement methods: balance, bankBalance, whoAmI
- [#2108](https://github.com/NibiruChain/nibiru/pull/2108) - fix(evm): removed deprecated root key from eth_getTransactionReceipt

#### Nibiru EVM | Before Audit 1 - 2024-10-18

Expand Down
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 6ec8200

Please sign in to comment.