From f3a04144619141937192dbc65d779bd8fff1946a Mon Sep 17 00:00:00 2001 From: "PFC(Ian)" Date: Fri, 11 Mar 2022 16:16:55 +1100 Subject: [PATCH] [bug] all_nft_info() bug with 'image_prefix' (was called incorrectly) --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/query.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cb4179a..b11f6d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -675,7 +675,7 @@ dependencies = [ [[package]] name = "terra-peep721" -version = "0.4.8" +version = "0.4.9" dependencies = [ "base64", "cosmwasm-schema", diff --git a/Cargo.toml b/Cargo.toml index 511b938..830f9b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "terra-peep721" -version = "0.4.8" +version = "0.4.9" authors = ["PFC"] edition = "2018" diff --git a/src/query.rs b/src/query.rs index 7be1d94..7b70c12 100644 --- a/src/query.rs +++ b/src/query.rs @@ -141,7 +141,8 @@ where token_id: String, include_expired: bool, ) -> StdResult> { - let prefix = self.image_prefix.load(deps.storage)?; + // let prefix = self.image_prefix.load(deps.storage)?; + let prefix = self.image_prefix(deps.storage)?; let info = self.tokens.load(deps.storage, &token_id)?; let extension = if let Some(image) = info.extension.get_image(&prefix) { let mut extension = info.extension.clone();