diff --git a/src/tests/test_world.cairo b/src/tests/test_world.cairo index 7848567..4c5c8c6 100644 --- a/src/tests/test_world.cairo +++ b/src/tests/test_world.cairo @@ -1,5 +1,6 @@ #[cfg(test)] mod tests { + use dojo::model::Model; // import world dispatcher use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; // import test utils @@ -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::::selector(), contract_address); + world.grant_writer(Model::::selector(), contract_address); + // call spawn() actions_system.spawn();