TestResource
In Cairo test runner, all the classes are expected to be declared already.
If a contract belong to an other crate, it must be added to the build-external-contract,
event for testing, since Scarb does not do that automatically anymore.
Fully qualified path: dojo_cairo_test::world::TestResource
pub enum TestResource {
Event: ClassHash,
Model: ClassHash,
Contract: ClassHash,
Library: (ClassHash, @ByteArray, @ByteArray),
}
Variants
Event
Fully qualified path: dojo_cairo_test::world::TestResource::Event
Event: ClassHash
Model
Fully qualified path: dojo_cairo_test::world::TestResource::Model
Model: ClassHash
Contract
Fully qualified path: dojo_cairo_test::world::TestResource::Contract
Contract: ClassHash
Library
(class_hash, name, version)
Fully qualified path: dojo_cairo_test::world::TestResource::Library
Library: (ClassHash, @ByteArray, @ByteArray)