Trait ink::reflect::ConstructorOutput
source · pub trait ConstructorOutput<C>: Sealed {
type Error;
const IS_RESULT: bool = false;
// Required method
fn as_result(&self) -> Result<&C, &Self::Error>;
}
Expand description
Guards against using invalid contract initializer types.
Note
Currently the only allowed types are ()
and Result<(), E>
where E
is some unspecified error type.
If the contract initializer returns Result::Err
the utility
method that is used to initialize an ink! smart contract will
revert the state of the contract instantiation.