From 79e59eaffdd2882687a7565e75af06aa4b51c5ee Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 8 Aug 2022 22:02:11 +0200 Subject: [PATCH] chore: skip none trace error (#1577) --- ethers-core/src/types/trace/filter.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ethers-core/src/types/trace/filter.rs b/ethers-core/src/types/trace/filter.rs index 9d0a6aaa..e4a5e946 100644 --- a/ethers-core/src/types/trace/filter.rs +++ b/ethers-core/src/types/trace/filter.rs @@ -103,6 +103,7 @@ pub struct Trace { #[serde(rename = "type")] pub action_type: ActionType, /// Error + #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, }