Skip to content

Commit

Permalink
use external_url from data
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkac committed Jan 19, 2024
1 parent 2dd30ea commit bfac23d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/metadata/slots/template/generate_slot.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn add_metadata_members_(ref metadata: JsonMetadata, data: @TemplateData) {
array!['ipfs://Qmdjj76nkc1HQn8Tr3ertWs9', 'eWkFMBxXQkGwjHEp6mWbig', '/banner.png']
.span()
);
metadata.add_member('external_url', common_data::get_external_url());
metadata.add_member('external_url', *data.external_url);
metadata.add_member('youtube_url', common_data::get_youtube_url());
}

Expand Down Expand Up @@ -94,7 +94,7 @@ fn generate_data(static: ProjectStaticData, storage: StorageData) -> TemplateDat
project: static,
token_name,
token_description,
external_url: common_data::get_external_url(),
external_url: static.external_url,
youtube_url: common_data::get_youtube_url(),
status: status.to_string(),
project_area: array![static.area.to_ascii()].span(),
Expand Down
6 changes: 3 additions & 3 deletions src/metadata/slots/template/generate_token.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use alexandria_ascii::ToAsciiTrait;
fn add_metadata_members_(ref metadata: JsonMetadata, data: @TemplateData) {
metadata.add_member('name', *data.token_name);
metadata.add_member('description', *data.token_description);
metadata.add_member('external_url', common_data::get_external_url());
metadata.add_member('youtube_url', common_data::get_youtube_url());
metadata.add_member('external_url', *data.external_url);
metadata.add_member('youtube_url', *data.youtube_url);
metadata.add_member('image', svg::generate(data));
}

Expand Down Expand Up @@ -100,7 +100,7 @@ fn generate_data(static: ProjectStaticData, storage: StorageData) -> TemplateDat
project: static,
token_name,
token_description,
external_url: common_data::get_external_url(),
external_url: static.external_url,
youtube_url: common_data::get_youtube_url(),
status: status.to_string(),
project_area: array![static.area.to_ascii()].span(),
Expand Down

0 comments on commit bfac23d

Please sign in to comment.