Skip to content

Commit

Permalink
💚 Fix cairo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Jan 21, 2025
1 parent b51fb57 commit e5433d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/src/tests/mocks/register.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ trait IRegister<TContractState> {
world_address: felt252,
namespace: felt252,
project: felt252,
preset: felt252,
color: Option<felt252>,
name: Option<ByteArray>,
description: Option<ByteArray>,
Expand All @@ -20,6 +21,7 @@ trait IRegister<TContractState> {
self: @TContractState,
world_address: felt252,
namespace: felt252,
preset: felt252,
color: Option<felt252>,
name: Option<ByteArray>,
description: Option<ByteArray>,
Expand Down Expand Up @@ -92,6 +94,7 @@ pub mod Register {
world_address: felt252,
namespace: felt252,
project: felt252,
preset: felt252,
color: Option<felt252>,
name: Option<ByteArray>,
description: Option<ByteArray>,
Expand All @@ -113,6 +116,7 @@ pub mod Register {
world_address,
namespace,
project,
preset,
color,
name,
description,
Expand All @@ -130,6 +134,7 @@ pub mod Register {
self: @ContractState,
world_address: felt252,
namespace: felt252,
preset: felt252,
color: Option<felt252>,
name: Option<ByteArray>,
description: Option<ByteArray>,
Expand All @@ -150,6 +155,7 @@ pub mod Register {
caller,
world_address,
namespace,
preset,
color,
name,
description,
Expand Down
2 changes: 2 additions & 0 deletions contracts/src/tests/test_trackable.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -33,6 +34,7 @@ fn register(systems: @Systems) {
WORLD_ADDRESS,
NAMEPSACE,
PROJECT,
PRESET,
Option::None,
Option::None,
Option::None,
Expand Down

0 comments on commit e5433d1

Please sign in to comment.