Skip to content

Commit 3fe389c

Browse files
authored
Merge pull request #558 from multiversx/TOOL-422-add-support-for-array-6
Add support for Array6
2 parents 9bc160b + fb99316 commit 3fe389c

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiversx/sdk-core",
3-
"version": "13.16.0",
3+
"version": "13.17.0",
44
"description": "MultiversX SDK for JavaScript and TypeScript",
55
"author": "MultiversX",
66
"homepage": "https://multiversx.com",

src/smartcontracts/typesystem/typeMapper.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ describe("test mapper", () => {
6666
it("should map arrays", () => {
6767
testArrayMapping("array2<BigUint>", 2, new BigUIntType());
6868
testArrayMapping("array2<u32>", 2, new U32Type());
69+
testArrayMapping("array6<u8>", 6, new U8Type());
6970
testArrayMapping("array8<BigUint>", 8, new BigUIntType());
7071
testArrayMapping("array48<u8>", 48, new U8Type());
7172
testArrayMapping("array256<BigUint>", 256, new BigUIntType());

src/smartcontracts/typesystem/typeMapper.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export class TypeMapper {
6969
// Known-length arrays.
7070
// TODO: Handle these in typeExpressionParser!
7171
["array2", (...typeParameters: Type[]) => new ArrayVecType(2, typeParameters[0])],
72+
["array6", (...typeParameters: Type[]) => new ArrayVecType(6, typeParameters[0])],
7273
["array8", (...typeParameters: Type[]) => new ArrayVecType(8, typeParameters[0])],
7374
["array16", (...typeParameters: Type[]) => new ArrayVecType(16, typeParameters[0])],
7475
["array20", (...typeParameters: Type[]) => new ArrayVecType(20, typeParameters[0])],

0 commit comments

Comments
 (0)