public void Check(Contract contract) { for (int i = 0; i < ScriptHashes.Length; i++) { if (ScriptHashes[i] == contract.ScriptHash) { completed[i] = contract.IsCompleted(signatures[i].Keys.ToArray()); break; } } }