From 53b92cbf2b0d482ce1918299aab3191cabdfb4d4 Mon Sep 17 00:00:00 2001 From: Darlington02 Date: Mon, 13 Jan 2025 16:07:44 +0100 Subject: [PATCH] chore: update profile token uri image --- src/coloniznft/coloniznft.cairo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coloniznft/coloniznft.cairo b/src/coloniznft/coloniznft.cairo index 0ee18d9..1e17486 100644 --- a/src/coloniznft/coloniznft.cairo +++ b/src/coloniznft/coloniznft.cairo @@ -173,7 +173,8 @@ pub mod ColonizNFT { fn token_uri(self: @ContractState, token_id: u256) -> ByteArray { let mint_timestamp: u64 = self.get_token_mint_timestamp(token_id); let profile_variant = self.profile_variants.read(token_id); - let image_url = format!("{}{}", self.base_uri.read(), token_id); + let extension: ByteArray = ".png"; + let image_url = format!("{}{}{}", self.base_uri.read(), token_id, extension); get_token_uri(profile_variant, token_id, mint_timestamp, image_url) } }