Trait odra::host::InitArgs

source ·
pub trait InitArgs: Into<RuntimeArgs> {
    // Required method
    fn validate(expected_ident: &str) -> bool;
}
Expand description

A type which can be used as initialization arguments for a contract.

Required Methods§

source

fn validate(expected_ident: &str) -> bool

Validates the args are used to initialized the right contact.

If the expected_ident does not match the contract ident, the method returns false.

Object Safety§

This trait is not object safe.

Implementors§