fix: dont skip null to field (#1631)

This commit is contained in:
Matthias Seitz 2022-08-23 18:15:29 +02:00 committed by GitHub
parent c8e9d46cfa
commit b302ac05be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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<Address>,
/// Transferred value