diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 54a3e2a..9e65d7b 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -610,9 +610,6 @@ components: blockchain_explorer_url: description: Blockchain explorer base URL. type: string - blockchain_contract_name: - description: Blockchain contract name. - type: string blockchain_contract_address: description: Blockchain contract address. type: string diff --git a/src/mastodon_api/instance/types.rs b/src/mastodon_api/instance/types.rs index 39c503a..f679c61 100644 --- a/src/mastodon_api/instance/types.rs +++ b/src/mastodon_api/instance/types.rs @@ -1,7 +1,6 @@ use serde::Serialize; use crate::config::Config; -use crate::ethereum::contracts::ADAPTER; use crate::mastodon_api::MASTODON_API_VERSION; #[derive(Serialize)] @@ -15,7 +14,6 @@ pub struct InstanceInfo { login_message: String, blockchain_explorer_url: Option, - blockchain_contract_name: Option, blockchain_contract_address: Option, ipfs_gateway_url: Option, } @@ -40,8 +38,6 @@ impl From<&Config> for InstanceInfo { login_message: config.login_message.clone(), blockchain_explorer_url: config.blockchain.as_ref() .and_then(|val| val.explorer_url.clone()), - blockchain_contract_name: config.blockchain.as_ref() - .and(Some(ADAPTER.into())), blockchain_contract_address: config.blockchain.as_ref() .map(|val| val.contract_address.clone()), ipfs_gateway_url: config.ipfs_gateway_url.clone(),