make fields defaulting to 0 optional

This commit is contained in:
keorn
2016-12-22 07:06:40 +01:00
parent b369939f20
commit 552a772cc1
5 changed files with 16 additions and 16 deletions

View File

@@ -22,9 +22,9 @@ use hash::H256;
/// Spec params.
#[derive(Debug, PartialEq, Deserialize)]
pub struct Params {
/// Account start nonce.
/// Account start nonce, defaults to 0.
#[serde(rename="accountStartNonce")]
pub account_start_nonce: Uint,
pub account_start_nonce: Option<Uint>,
/// Maximum size of extra data.
#[serde(rename="maximumExtraDataSize")]
pub maximum_extra_data_size: Uint,