From b302ac05be99a6571c37f0300c8ae6ef568c6f1b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 23 Aug 2022 18:15:29 +0200 Subject: [PATCH] fix: dont skip null to field (#1631) --- ethers-core/src/types/transaction/response.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-core/src/types/transaction/response.rs b/ethers-core/src/types/transaction/response.rs index 54fe85b3..0f76c138 100644 --- a/ethers-core/src/types/transaction/response.rs +++ b/ethers-core/src/types/transaction/response.rs @@ -40,7 +40,7 @@ pub struct Transaction { pub from: Address, /// Recipient (None when contract creation) - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default)] pub to: Option
, /// Transferred value