Skip to content

Commit 03302ec

Browse files
committed
fix call in tests
1 parent 219e3a1 commit 03302ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/provable/dynamic-array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ class DynamicArrayBase<ProvableValue = any, Value = any> {
519519
*/
520520
includes(value: ProvableValue): Bool {
521521
let type = this.innerType;
522-
let isIncluded = this.array.map((t) => Provable.equal(this.innerType, t, value));
522+
let isIncluded = this.array.map((t) => Provable.equal(type, t, value));
523523
let isSome = isIncluded.reduce((acc, curr) => acc.or(curr), new Bool(false));
524524
return isSome;
525525
}

src/lib/provable/test/dynamic-array.unit-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ await Provable.runAndCheck(() => {
567567
}
568568

569569
// Checking inclusion of elements
570-
assert(bytes.includes(new UInt8(1)).toBoolean());
571-
assert(bytes.includes(new UInt8(20)).not().toBoolean());
570+
assert(bytes.includes(new UInt8(1)));
571+
assert(bytes.includes(new UInt8(20)).not());
572572
},
573573
},
574574
},

0 commit comments

Comments
 (0)