isComplete method

bool isComplete(
  1. int threshold
)

Check if already fully approved

This shouldn't happen normally but check to be safe.

Parameters:

  • threshold: The multisig threshold

Example:

if (storage.isComplete(signatories.threshold)) {
  print('Transaction already fully approved!');
}

Implementation

bool isComplete(final int threshold) {
  return approvals.length >= threshold;
}