Skip to content

Commit

Permalink
fix: allow address 0 in fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Aug 18, 2023
1 parent dcdb3fd commit fc031c9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/endpoints/achievements/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ pub async fn handler(
State(state): State<Arc<AppState>>,
Query(query): Query<AchievementQuery>,
) -> impl IntoResponse {
if query.addr == FieldElement::ZERO {
return get_error("Please connect your wallet first".to_string());
}
let addr = FieldElement::to_string(&query.addr);
let achievement_categories = state
.db
Expand Down

0 comments on commit fc031c9

Please sign in to comment.