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