Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiss committed Jan 1, 2024
1 parent f221d29 commit 66978f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/pontos/src/managers/token_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl<S: Storage, C: StarknetClient> TokenManager<S, C> {

token.owner = token_owner_raw_result
.ok()
.and_then(|owner| owner.get(0).map(to_hex_str))
.and_then(|owner| owner.first().map(to_hex_str))
.unwrap_or_default();

self.storage.register_token(&token, block_timestamp).await?;
Expand Down

0 comments on commit 66978f4

Please sign in to comment.