Comparing version 12.2.7 to 12.2.8
@@ -267,5 +267,2 @@ "use strict"; | ||
} | ||
if (src.length !== this.length) { | ||
return false; | ||
} | ||
let sr = new __1.BitStringReader(src); | ||
@@ -272,0 +269,0 @@ let tr = new __1.BitStringReader(this); |
@@ -28,5 +28,10 @@ "use strict"; | ||
for (let i = 0; i < cell.length; i++) { | ||
expect(await cell[i].hash()).toEqual(Buffer.from(await nativeCell[i].hash())); | ||
expect(cell[i].hash()).toEqual(Buffer.from(await nativeCell[i].hash())); | ||
} | ||
}); | ||
it('should correctly compare after deserialization', () => { | ||
const cell = new Cell_1.Cell().withData("0101"); | ||
const cellboc = Cell_1.Cell.fromBoc(cell.toBoc({ idx: false }))[0]; | ||
expect(cell.equals(cellboc)).toBe(true); | ||
}); | ||
}); |
{ | ||
"name": "ton", | ||
"version": "12.2.7", | ||
"version": "12.2.8", | ||
"repository": "https://github.com/tonwhales/ton.git", | ||
@@ -5,0 +5,0 @@ "author": "Steve Korshakov <steve@korshakov.com>", |
457908
11848