approveSpaceRequest function

Future<String?> approveSpaceRequest({
  1. required String senderAddress,
  2. String? account,
  3. Signer? signer,
  4. String? pgpPrivateKey,
  5. dynamic status = 'Approved',
})

Implementation

Future<String?> approveSpaceRequest({
  required String senderAddress,
  String? account,
  Signer? signer,
  String? pgpPrivateKey,
  status = 'Approved',
}) {
  if (!isValidETHAddress(senderAddress) &&
      !senderAddress.startsWith("spaces:")) {
    throw Exception("Not a valid spaceId or ETH address");
  }
  return approve(
      senderAddress: senderAddress,
      account: account,
      pgpPrivateKey: pgpPrivateKey,
      signer: signer,
      status: status);
}