getNumReadonlySigners method

int getNumReadonlySigners()

Counts the number of accounts that are signers and readonly.

Implementation

int getNumReadonlySigners() => fold(
      0,
      (total, account) =>
          total + (!account.isWriteable && account.isSigner ? 1 : 0),
    );