pallet_evm_tracker::create_contract

Function is_create_unsigned_contract_allowed

Source
pub fn is_create_unsigned_contract_allowed<Runtime>(
    call: &RuntimeCallFor<Runtime>,
) -> bool
where Runtime: Config + 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

If anyone is allowed to create contracts, allows contracts. Otherwise, rejects contracts. Returns false if the call is a contract call, and there is a specific (possibly empty) allow list. Otherwise, returns true.