SmartAccountFactory constructor

SmartAccountFactory({
  1. required String contractAddress,
  2. required dynamic contractABI,
  3. required dynamic contractName,
})

Implementation

SmartAccountFactory({
  required this.contractAddress,
  required contractABI,
  required contractName,
  // required rpcURL,
  // required signer,
}) {
  // this.contract = flutter_web3.Contract(contractAddress, contractABI, signer);
  this.deployedContract = DeployedContract(
    ContractAbi.fromJson(contractABI, contractName),
    EthereumAddress.fromHex(contractAddress),
  );
}