Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
fix: geth trace types (#1682)
Browse files Browse the repository at this point in the history
* fix: geth trace types

* update: changelog entry added
  • Loading branch information
grigull authored Sep 9, 2022
1 parent c341f31 commit c9c22f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Unreleased

- Fix geth trace types for debug_traceTransaction rpc
- Fix RLP decoding of legacy `Transaction`
- Fix RLP encoding of `TransactionReceipt` [#1661](https://github.com/gakonst/ethers-rs/pull/1661)
- Add `Unit8` helper type [#1639](https://github.com/gakonst/ethers-rs/pull/1639)
Expand Down
6 changes: 3 additions & 3 deletions ethers-core/src/types/trace/geth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ pub struct StructLog {
#[serde(rename = "gasCost")]
pub gas_cost: u64,
#[serde(skip_serializing_if = "Option::is_none")]
pub memory: Option<Vec<u8>>,
pub memory: Option<Vec<H256>>,
pub op: String,
pub pc: U256,
pub pc: u64,
#[serde(rename = "refund", skip_serializing_if = "Option::is_none")]
pub refund_counter: Option<u64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub stack: Option<Vec<U256>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub storage: Option<BTreeMap<H160, BTreeMap<H256, H256>>>,
pub storage: Option<BTreeMap<H256, H256>>,
}

/// Bindings for additional `debug_traceTransaction` options
Expand Down

0 comments on commit c9c22f4

Please sign in to comment.