diff --git a/web/explorer/explorer-server/src/api.rs b/web/explorer/explorer-server/src/api.rs --- a/web/explorer/explorer-server/src/api.rs +++ b/web/explorer/explorer-server/src/api.rs @@ -30,11 +30,10 @@ let json_token = JsonToken { token_id: token_id.clone(), - token_type: slp_meta.token_type as u32, + token_type: slp_meta.token_type, token_ticker, token_name, decimals: genesis_info.decimals, - group_id: Some(hex::encode(&slp_meta.group_token_id)), }; json_tokens.insert(token_id.clone(), json_token.clone()); } @@ -142,11 +141,10 @@ Some(token_id_hex), Some(JsonToken { token_id: to_be_hex(&slp_meta.token_id), - token_type: slp_meta.token_type as u32, + token_type: slp_meta.token_type, token_ticker, token_name, decimals: genesis_info.decimals, - group_id: Some(to_be_hex(&slp_meta.group_token_id)), }), ) } diff --git a/web/explorer/explorer-server/src/server_primitives.rs b/web/explorer/explorer-server/src/server_primitives.rs --- a/web/explorer/explorer-server/src/server_primitives.rs +++ b/web/explorer/explorer-server/src/server_primitives.rs @@ -26,11 +26,10 @@ #[serde(rename_all = "camelCase")] pub struct JsonToken { pub token_id: String, - pub token_type: u32, + pub token_type: i32, pub token_ticker: String, pub token_name: String, pub decimals: u32, - pub group_id: Option, } #[derive(Serialize)]