Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

spawn_test_world

Spawns a test world registering provided resources into namespaces.

This function only deploys the world and registers the resources, it does not initialize the contracts or any permissions. The first namespace is used as the default namespace when WorldStorage is returned.

Arguments

  • namespaces_defs - Definitions of namespaces to register.

Returns

  • World dispatcher

Fully qualified path: dojo_snf_test::world::spawn_test_world

pub fn spawn_test_world(namespaces_defs: Span<NamespaceDef>) -> WorldStorage