diff --git a/src/metadata/slots/template/generate_token.cairo b/src/metadata/slots/template/generate_token.cairo index 71aab22..03a0032 100644 --- a/src/metadata/slots/template/generate_token.cairo +++ b/src/metadata/slots/template/generate_token.cairo @@ -17,7 +17,7 @@ fn add_metadata_members_(ref metadata: JsonMetadata, data: @TemplateData) { metadata.add_member('description', *data.token_description); metadata.add_member('external_url', *data.external_url); metadata.add_member('youtube_url', *data.youtube_url); - metadata.add_member('image_data', svg::generate(data)); + metadata.add_member('image', svg::generate(data)); } #[inline(always)] diff --git a/src/tests/test_slot_metadata.cairo b/src/tests/test_slot_metadata.cairo index d7cdded..6769aa8 100644 --- a/src/tests/test_slot_metadata.cairo +++ b/src/tests/test_slot_metadata.cairo @@ -9,6 +9,7 @@ use test::test_utils::assert_eq; use metadata::metadata::slots::banegas_farm::contract::BanegasFarmUri; use metadata::metadata::slots::las_delicias::contract::LasDeliciasUri; use metadata::metadata::slots::manjarisoa::contract::ManjarisoaUri; +use metadata::metadata::slots::karathuru::contract::KarathuruUri; use metadata::metadata::slots::lorem_ipsum::contract::LoremIpsumUri; use metadata::tests::mocks::project::ProjectMock; use metadata::interfaces::slot_descriptor::{ @@ -50,7 +51,7 @@ use metadata::components::component::sft::badges::badge_XS::Component as SFTBadg use metadata::components::component::backgrounds::bg_banegas_farm::Component as ParrotBackground; use metadata::components::component::backgrounds::bg_las_delicias::Component as SwampBackground; use metadata::components::component::backgrounds::bg_manjarisoa::Component as MonkeyBackground; -use metadata::components::component::backgrounds::bg_water::Component as WaterBackground; +use metadata::components::component::backgrounds::bg_karathuru::Component as WaterBackground; use metadata::components::provider::ComponentProvider; use metadata::tests::utils; @@ -128,7 +129,7 @@ fn test_construct_slot_uri() { let slot = 1_u256; let metadata = ISlotDescriptorLibraryDispatcher { - class_hash: as_class(BanegasFarmUri::TEST_CLASS_HASH) + class_hash: as_class(KarathuruUri::TEST_CLASS_HASH) }; set_contract_address(project_address); @@ -148,7 +149,7 @@ fn test_construct_token_uri() { let token_id = 1_u256; let metadata = ISlotDescriptorLibraryDispatcher { - class_hash: as_class(LoremIpsumUri::TEST_CLASS_HASH) + class_hash: as_class(KarathuruUri::TEST_CLASS_HASH) }; set_contract_address(project_address);