pub trait EvmOnchainStateApi<Block: BlockT>: Core<Block> {
// Provided method
fn evm_contract_creation_allowed_by(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Option<PermissionedActionAllowedBy<EthereumAccountId>>, ApiError> { ... }
}
Expand description
Api for querying onchain EVM state in tests
Provided Methods§
Sourcefn evm_contract_creation_allowed_by(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Option<PermissionedActionAllowedBy<EthereumAccountId>>, ApiError>
fn evm_contract_creation_allowed_by( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Option<PermissionedActionAllowedBy<EthereumAccountId>>, ApiError>
Returns the current EVM contract creation allow list.
Returns None
if this is not an EVM domain.