From e5433d1fb771d6c3b1e7a618b72126569af46c8e Mon Sep 17 00:00:00 2001 From: bal7hazar Date: Tue, 21 Jan 2025 19:56:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20cairo=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contracts/src/tests/mocks/register.cairo | 6 ++++++ contracts/src/tests/test_trackable.cairo | 2 ++ 2 files changed, 8 insertions(+) diff --git a/contracts/src/tests/mocks/register.cairo b/contracts/src/tests/mocks/register.cairo index 2dd246c..d12e603 100644 --- a/contracts/src/tests/mocks/register.cairo +++ b/contracts/src/tests/mocks/register.cairo @@ -5,6 +5,7 @@ trait IRegister { world_address: felt252, namespace: felt252, project: felt252, + preset: felt252, color: Option, name: Option, description: Option, @@ -20,6 +21,7 @@ trait IRegister { self: @TContractState, world_address: felt252, namespace: felt252, + preset: felt252, color: Option, name: Option, description: Option, @@ -92,6 +94,7 @@ pub mod Register { world_address: felt252, namespace: felt252, project: felt252, + preset: felt252, color: Option, name: Option, description: Option, @@ -113,6 +116,7 @@ pub mod Register { world_address, namespace, project, + preset, color, name, description, @@ -130,6 +134,7 @@ pub mod Register { self: @ContractState, world_address: felt252, namespace: felt252, + preset: felt252, color: Option, name: Option, description: Option, @@ -150,6 +155,7 @@ pub mod Register { caller, world_address, namespace, + preset, color, name, description, diff --git a/contracts/src/tests/test_trackable.cairo b/contracts/src/tests/test_trackable.cairo index 858bdad..2d6a7b2 100644 --- a/contracts/src/tests/test_trackable.cairo +++ b/contracts/src/tests/test_trackable.cairo @@ -22,6 +22,7 @@ use registry::tests::setup::setup::{spawn, Systems, Context, PLAYER, OWNER}; const WORLD_ADDRESS: felt252 = 'WORLD'; const NAMEPSACE: felt252 = 'NAMESPACE'; const PROJECT: felt252 = 'PROJECT'; +const PRESET: felt252 = 'PRESET'; // Helpers @@ -33,6 +34,7 @@ fn register(systems: @Systems) { WORLD_ADDRESS, NAMEPSACE, PROJECT, + PRESET, Option::None, Option::None, Option::None,