Skip to content

Commit

Permalink
fix: address_to_domain (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv authored May 2, 2024
1 parent 4b8df64 commit c5de382
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/common/verify_has_root_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
2 changes: 1 addition & 1 deletion src/common/verify_has_root_or_braavos_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/achievements/verify_has_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/quests/starknetid/verify_has_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/quests/starknetid/verify_socials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;

Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/quests/tribe/verify_has_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/quests/tribe/verify_three_years_expiry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit c5de382

Please sign in to comment.