Skip to content

Commit

Permalink
[bug] all_nft_info() bug with 'image_prefix' (was called incorrectly)
Browse files Browse the repository at this point in the history
  • Loading branch information
PFC-developer committed Mar 11, 2022
1 parent cef70e0 commit f3a0414
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "terra-peep721"
version = "0.4.8"
version = "0.4.9"
authors = ["PFC"]
edition = "2018"

Expand Down
3 changes: 2 additions & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ where
token_id: String,
include_expired: bool,
) -> StdResult<AllNftInfoResponse<T>> {
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();
Expand Down

0 comments on commit f3a0414

Please sign in to comment.