pub trait HasInitContext<Error: Default = ()>: HasCommonData {
type InitData;
// Required methods
fn open(data: Self::InitData) -> Self;
fn init_origin(&self) -> AccountAddress;
}
Expand description
Types which can act as init contexts.
§Deprecation notice
This trait is deprecated along with
crate::test_infrastructure
.
Use InitContext
instead unless you intend to
use the deprecated test infrastructure.
See the crate documentation for more details.
Required Associated Types§
Required Methods§
Sourcefn init_origin(&self) -> AccountAddress
fn init_origin(&self) -> AccountAddress
Who invoked this init call.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.