diff --git a/digital_asset_types/src/dapi/common/asset.rs b/digital_asset_types/src/dapi/common/asset.rs index 54d658edb..aa27b636a 100644 --- a/digital_asset_types/src/dapi/common/asset.rs +++ b/digital_asset_types/src/dapi/common/asset.rs @@ -268,8 +268,8 @@ pub fn asset_to_rpc(asset: FullAsset) -> Result { .and_then(|v| v.as_bool()) .unwrap_or(false); let edition_nonce = safe_select(chain_data_selector, "$.edition_nonce") - .and_then(|v| v.as_u64()) - .unwrap_or(0); + .and_then(|v| v.as_u64()); + Ok(RpcAsset { interface: interface.clone(), id: bs58::encode(asset.id).into_string(), diff --git a/digital_asset_types/src/rpc/asset.rs b/digital_asset_types/src/rpc/asset.rs index 8d9984a55..9357ed493 100644 --- a/digital_asset_types/src/rpc/asset.rs +++ b/digital_asset_types/src/rpc/asset.rs @@ -331,7 +331,7 @@ pub struct Uses { pub struct Supply { pub print_max_supply: u64, pub print_current_supply: u64, - pub edition_nonce: u64, + pub edition_nonce: Option, } #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]