pallet_evm_tracker::create_contract

Function is_create_contract_allowed

Source
pub fn is_create_contract_allowed<Runtime>(
    call: &RuntimeCallFor<Runtime>,
    signer: &EthereumAccountId,
) -> bool
where Runtime: Config<AccountId = EthereumAccountId> + Config + Config + Config + Config, RuntimeCallFor<Runtime>: MaybeIntoEthCall<Runtime> + MaybeIntoEvmCall<Runtime> + MaybeIntoUtilityCall<Runtime>, for<'block> &'block RuntimeCallFor<Runtime>: From<&'block <Runtime as Config>::RuntimeCall>, Result<RawOrigin, OriginFor<Runtime>>: From<OriginFor<Runtime>>,
Expand description

Rejects contracts that can’t be created under the current allow list. Returns false if the call is a contract call, and the account is not allowed to call it. Otherwise, returns true.