Trait concordium_std::HasInitContext
source · 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.
Object Safety§
This trait is not object safe.