diff --git a/src/endpoints/quests/starknetid/verify_socials.rs b/src/endpoints/quests/starknetid/verify_socials.rs index 7d8c7daa..a484846c 100644 --- a/src/endpoints/quests/starknetid/verify_socials.rs +++ b/src/endpoints/quests/starknetid/verify_socials.rs @@ -53,6 +53,7 @@ pub async fn handler( ) -> Result<(StatusCode, Json), String> { let task_id = 6; let addr = &query.addr; + let domain_res = call_contract_helper( &state, state.conf.starknetid_contracts.naming_contract, @@ -64,22 +65,14 @@ pub async fn handler( let id_res = call_contract_helper( &state, state.conf.starknetid_contracts.naming_contract, - selector!("domain_to_token_id"), + selector!("domain_to_id"), domain_res, ) .await?; - let mut twitter = false; let mut discord = false; - for verifier_contract in &state.conf.starknetid_contracts.verifier_contracts { - let calldata = vec![ - id_res[0], - short_string!("discord"), - *verifier_contract, - FieldElement::ZERO, - ]; let twitter_verifier_data = call_contract_helper( &state, state.conf.starknetid_contracts.identity_contract, @@ -108,8 +101,6 @@ pub async fn handler( ], ) .await?; - - if discord_verifier_data[0] != felt!("0") { discord = true; } @@ -131,4 +122,4 @@ pub async fn handler( Ok(val) => val.into_response(), Err(err) => get_error(err), } -} +} \ No newline at end of file