[][src]Trait srml_contract::ContractAddressFor

pub trait ContractAddressFor<CodeHash, AccountId> {
    fn contract_address_for(
        code_hash: &CodeHash,
        data: &[u8],
        origin: &AccountId
    ) -> AccountId; }

A function that generates an AccountId for a contract upon instantiation.

Required methods

fn contract_address_for(
    code_hash: &CodeHash,
    data: &[u8],
    origin: &AccountId
) -> AccountId

Loading content...

Implementors

impl<T: Trait> ContractAddressFor<<T as Trait>::Hash, <T as Trait>::AccountId> for SimpleAddressDeterminator<T> where
    T::AccountId: UncheckedFrom<T::Hash> + AsRef<[u8]>, 
[src]

Loading content...