Function create_access_control_instance

Source
pub fn create_access_control_instance(
    abi_path: &str,
    contract_address: &str,
    provider: Arc<Provider<Http>>,
) -> Result<Contract<Provider<Http>>, Box<dyn Error>>
Expand description

Creates a Contract instance for managing access control.

§Arguments

  • abi_path - Path to the ABI file.
  • contract_address - Address of the contract.
  • provider - Arc-wrapped Provider instance for Ethereum network interaction.

§Returns

A Contract instance that allows interaction with access control-enabled contracts.