diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c6b00ec..939c4189 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/ethers-core/src/types/trace/geth.rs b/ethers-core/src/types/trace/geth.rs index 36284898..47ecf4dd 100644 --- a/ethers-core/src/types/trace/geth.rs +++ b/ethers-core/src/types/trace/geth.rs @@ -23,15 +23,15 @@ pub struct StructLog { #[serde(rename = "gasCost")] pub gas_cost: u64, #[serde(skip_serializing_if = "Option::is_none")] - pub memory: Option>, + pub memory: Option>, pub op: String, - pub pc: U256, + pub pc: u64, #[serde(rename = "refund", skip_serializing_if = "Option::is_none")] pub refund_counter: Option, #[serde(skip_serializing_if = "Option::is_none")] pub stack: Option>, #[serde(skip_serializing_if = "Option::is_none")] - pub storage: Option>>, + pub storage: Option>, } /// Bindings for additional `debug_traceTransaction` options