OctacoreSmartWallet constructor

OctacoreSmartWallet({
  1. required String scwAddress,
  2. String? ownerAddress,
  3. int? salt,
  4. String? paymasterAddress,
  5. PaymasterType? paymasterType,
  6. Map<int, dynamic>? batch,
  7. List<String>? modules,
})

Implementation

OctacoreSmartWallet({
  required String scwAddress,
  String? ownerAddress,
  // required Signer signer,
  int? salt,
  String? paymasterAddress,
  PaymasterType? paymasterType,
  Map<int, dynamic>? batch,
  List<String>? modules,
}) : super(
        scwAddress: scwAddress,
        abi: _abi,
        modules: modules,
        ownerAddress: ownerAddress,
        salt: salt,
        entryPointAddress: _entryPointAddress,
        bundlerURL: _bundlerURL,
        entryPointContract: _entrypointContract,
        // signer: signer,
        rpcURL:
            "https://polygon-mumbai.infura.io/v3/6130f5b7c891499385e309ddf3cf10c8",
        paymasterConfig: paymasterAddress == null
            ? null
            : PaymasterConfig(paymasterAddress, paymasterType!),
        usePaymaster: paymasterAddress == null ? false : true,
        batch: batch,
      );