Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Aug 13, 2024
1 parent 4bcffa0 commit 2300d3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tests/test_world.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#[cfg(test)]
mod tests {
use dojo::model::Model;
// import world dispatcher
use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait};
// import test utils
Expand All @@ -23,8 +24,12 @@ mod tests {

// deploy systems contract
let contract_address = world
.deploy_contract('salt', actions::TEST_CLASS_HASH.try_into().unwrap(), array![].span());
.deploy_contract('salt', actions::TEST_CLASS_HASH.try_into().unwrap());
let actions_system = IActionsDispatcher { contract_address };

world.grant_writer(Model::<Moves>::selector(), contract_address);
world.grant_writer(Model::<Position>::selector(), contract_address);

// call spawn()
actions_system.spawn();

Expand Down

0 comments on commit 2300d3f

Please sign in to comment.