UserOperation.renew constructor

UserOperation.renew(
  1. String domainName,
  2. int expiresAtHeight
)

Implementation

factory UserOperation.renew(String domainName, int expiresAtHeight) {
  final nativeDomainName = domainName.toNativeUtf8();
  try {
    final op = DartApi.native.coeusUserOperation
        .opRenew(nativeDomainName, expiresAtHeight)
        .extract((res) => res.asPointer<Void>());
    return UserOperation(op, true);
  } finally {
    calloc.free(nativeDomainName);
  }
}