Skip to content

Commit

Permalink
🧪 test paused metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkac committed Jul 9, 2024
1 parent 0959b21 commit d70a7f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scarb 0.7.0
2 changes: 1 addition & 1 deletion src/metadata/slots/template/generate_slot.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn generate_data(static: ProjectStaticData, storage: StorageData) -> TemplateDat
// Reusing the token template
let token_name: String = static.name;
let token_description: String = static.description;
let status: ProjectStatus = template_data::get_status_(storage);
let status: ProjectStatus = template_data::get_status_(storage, static);
let size: AssetSize = template_data::get_asset_size_(static, storage);
let empty = array![''].span();
let project_remaining_cu = storage.final_absorption - storage.current_absorption;
Expand Down
2 changes: 1 addition & 1 deletion src/metadata/slots/template/generate_token.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn generate_token_uri(
fn generate_data(static: ProjectStaticData, storage: StorageData) -> TemplateData {
let token_name: String = static.name;
let token_description: String = static.description;
let status: ProjectStatus = template_data::get_status_(storage);
let status: ProjectStatus = template_data::get_status_(storage, static);
let size: AssetSize = template_data::get_asset_size_(static, storage);
let null = array![''].span();
let project_remaining_cu = storage.final_absorption - storage.current_absorption;
Expand Down
4 changes: 2 additions & 2 deletions src/tests/test_slot_metadata.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn test_construct_slot_uri() {
let slot = 1_u256;

let metadata = ISlotDescriptorLibraryDispatcher {
class_hash: as_class(KarathuruUri::TEST_CLASS_HASH)
class_hash: as_class(ManjarisoaUri::TEST_CLASS_HASH)
};

set_contract_address(project_address);
Expand All @@ -151,7 +151,7 @@ fn test_construct_token_uri() {
let token_id = 1_u256;

let metadata = ISlotDescriptorLibraryDispatcher {
class_hash: as_class(KarathuruUri::TEST_CLASS_HASH)
class_hash: as_class(BanegasFarmUri::TEST_CLASS_HASH)
};

set_contract_address(project_address);
Expand Down

0 comments on commit d70a7f7

Please sign in to comment.