Fix load nfts
@@ -177,20 +177,6 @@ impl<'a, 'c> TokensSchema<'a, 'c> {
Ok(result)
}
- /// Loads all finalized NFTs.
- pub async fn load_nfts(&mut self) -> QueryResult<HashMap<TokenId, NFT>> {
- let start = Instant::now();
- let nfts = sqlx::query_as!(StorageNFT, "SELECT * FROM nft",)
- .fetch_all(self.0.conn())
- .await?
- .into_iter()
- .map(|nft| (TokenId(nft.token_id as u32), nft.into()))
- .collect();
-
- metrics::histogram!("sql.token.load_nfts", start.elapsed());
- Ok(nfts)
- }
-
/// Loads all the stored tokens from the database.
/// Alongside with the tokens added via `store_token` method, the default `ETH` token
/// is returned.
