Skip to content

Commit

Permalink
Await on fetch_and_save_content for consistency with other callsites
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmichalis committed Jan 30, 2025
1 parent 1fda654 commit 36b1252
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chain/tezos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ pub async fn process_nfts(
overriden_filename: Some("metadata.json".to_string()),
fallback_filename: None,
},
);
let metadata_content_str = fs::read_to_string(metadata_content.await?).await?;
)
.await?;
let metadata_content_str = fs::read_to_string(metadata_content).await?;
let metadata: NFTMetadata = serde_json::from_str(&metadata_content_str)?;

// Get NFT name to use as fallback filename
Expand Down

0 comments on commit 36b1252

Please sign in to comment.