fix: geth trace types (#1682)

* fix: geth trace types

* update: changelog entry added
This commit is contained in:
Robin Molen-Grigull 2022-09-09 16:20:25 -07:00 committed by GitHub
parent c341f31fc4
commit c9c22f4dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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