ignore generated wrappers and asset-swapper (#591)

This commit is contained in:
eobbad
2022-09-26 16:05:55 -04:00
committed by GitHub
parent c9b1aac8a5
commit b6597df84f
17 changed files with 43 additions and 96 deletions

View File

@@ -748,15 +748,7 @@ blockchainTests('LibBytes', env => {
const result = await libBytes
.publicWriteLength(byteArrayLongerThan32Bytes, newLen, constants.NULL_BYTES)
.callAsync();
expect(result).to.eq(
byteArrayLongerThan32Bytes.slice(
0,
newLen
.multipliedBy(2)
.plus(2)
.toNumber(),
),
);
expect(result).to.eq(byteArrayLongerThan32Bytes.slice(0, newLen.multipliedBy(2).plus(2).toNumber()));
});
it("should right pad with 0's if new length is greater than original and no extra bytes are appended", async () => {
const byteLen = fromHex(byteArrayLongerThan32Bytes).length;