We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 597736e commit f32982dCopy full SHA for f32982d
src/model/transaction/AggregateTransaction.ts
@@ -147,4 +147,17 @@ export class AggregateTransaction extends Transaction {
147
|| (this.signer !== undefined && this.signer.equals(publicAccount));
148
}
149
150
+ /**
151
+ * Check if an aggregate complete transaction has all cosignatories
152
+ * @returns {boolean}
153
+ */
154
+ public isComplete(): boolean {
155
+ let isCompleted = false;
156
+ this.innerTransactions.forEach((innerTransaction) => {
157
+ if (!isCompleted) {
158
+ isCompleted = this.cosignatures.find((cosignature) => cosignature.signer.equals(innerTransaction.signer)) !== undefined;
159
+ }
160
+ });
161
+ return isCompleted;
162
163
0 commit comments