From c5de382b76e6ea6495c47654c10751505f74cbb2 Mon Sep 17 00:00:00 2001 From: Iris Date: Thu, 2 May 2024 11:29:25 +0200 Subject: [PATCH] fix: address_to_domain (#211) --- src/common/verify_has_root_domain.rs | 2 +- src/common/verify_has_root_or_braavos_domain.rs | 2 +- src/endpoints/achievements/verify_has_domain.rs | 2 +- src/endpoints/quests/starknetid/verify_has_domain.rs | 2 +- src/endpoints/quests/starknetid/verify_socials.rs | 2 +- src/endpoints/quests/tribe/verify_has_domain.rs | 2 +- src/endpoints/quests/tribe/verify_three_years_expiry.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/verify_has_root_domain.rs b/src/common/verify_has_root_domain.rs index fdb64c77..def70174 100644 --- a/src/common/verify_has_root_domain.rs +++ b/src/common/verify_has_root_domain.rs @@ -27,7 +27,7 @@ pub async fn execute_has_root_domain( FunctionCall { contract_address: state.conf.starknetid_contracts.naming_contract, entry_point_selector: selector!("address_to_domain"), - calldata: vec![*addr], + calldata: vec![*addr, FieldElement::ZERO], }, BlockId::Tag(BlockTag::Latest), ) diff --git a/src/common/verify_has_root_or_braavos_domain.rs b/src/common/verify_has_root_or_braavos_domain.rs index 9d2f9e36..7480d972 100644 --- a/src/common/verify_has_root_or_braavos_domain.rs +++ b/src/common/verify_has_root_or_braavos_domain.rs @@ -28,7 +28,7 @@ pub async fn verify_has_root_or_braavos_domain( FunctionCall { contract_address: state.conf.starknetid_contracts.naming_contract, entry_point_selector: selector!("address_to_domain"), - calldata: vec![*addr], + calldata: vec![*addr, FieldElement::ZERO], }, BlockId::Tag(BlockTag::Latest), ) diff --git a/src/endpoints/achievements/verify_has_domain.rs b/src/endpoints/achievements/verify_has_domain.rs index 3afc6928..94ceecc2 100644 --- a/src/endpoints/achievements/verify_has_domain.rs +++ b/src/endpoints/achievements/verify_has_domain.rs @@ -39,7 +39,7 @@ pub async fn handler( FunctionCall { contract_address: state.conf.starknetid_contracts.naming_contract, entry_point_selector: selector!("address_to_domain"), - calldata: vec![*addr], + calldata: vec![*addr, FieldElement::ZERO], }, BlockId::Tag(BlockTag::Latest), ) diff --git a/src/endpoints/quests/starknetid/verify_has_domain.rs b/src/endpoints/quests/starknetid/verify_has_domain.rs index 52a57936..746d46d5 100644 --- a/src/endpoints/quests/starknetid/verify_has_domain.rs +++ b/src/endpoints/quests/starknetid/verify_has_domain.rs @@ -44,7 +44,7 @@ pub async fn handler( FunctionCall { contract_address: state.conf.starknetid_contracts.naming_contract, entry_point_selector: selector!("address_to_domain"), - calldata: vec![*addr], + calldata: vec![*addr, FieldElement::ZERO], }, BlockId::Tag(BlockTag::Latest), ) diff --git a/src/endpoints/quests/starknetid/verify_socials.rs b/src/endpoints/quests/starknetid/verify_socials.rs index 72f33af3..10f3686b 100644 --- a/src/endpoints/quests/starknetid/verify_socials.rs +++ b/src/endpoints/quests/starknetid/verify_socials.rs @@ -58,7 +58,7 @@ pub async fn handler( &state, state.conf.starknetid_contracts.naming_contract, selector!("address_to_domain"), - vec![*addr], + vec![*addr, FieldElement::ZERO], ) .await?; diff --git a/src/endpoints/quests/tribe/verify_has_domain.rs b/src/endpoints/quests/tribe/verify_has_domain.rs index 81ed5fc1..a8ddc72d 100644 --- a/src/endpoints/quests/tribe/verify_has_domain.rs +++ b/src/endpoints/quests/tribe/verify_has_domain.rs @@ -44,7 +44,7 @@ pub async fn handler( FunctionCall { contract_address: state.conf.starknetid_contracts.naming_contract, entry_point_selector: selector!("address_to_domain"), - calldata: vec![*addr], + calldata: vec![*addr, FieldElement::ZERO], }, BlockId::Tag(BlockTag::Latest), ) diff --git a/src/endpoints/quests/tribe/verify_three_years_expiry.rs b/src/endpoints/quests/tribe/verify_three_years_expiry.rs index 98183799..d0979df7 100644 --- a/src/endpoints/quests/tribe/verify_three_years_expiry.rs +++ b/src/endpoints/quests/tribe/verify_three_years_expiry.rs @@ -47,7 +47,7 @@ pub async fn handler( FunctionCall { contract_address: state.conf.starknetid_contracts.naming_contract, entry_point_selector: selector!("address_to_domain"), - calldata: vec![*addr], + calldata: vec![*addr, FieldElement::ZERO], }, BlockId::Tag(BlockTag::Latest), )