From fcb29803393bacab66c9f9167c2a775af7b4b83f Mon Sep 17 00:00:00 2001 From: Andrei Bancioiu Date: Mon, 2 May 2022 16:34:11 +0300 Subject: [PATCH 1/2] Add extra type for known-length arrays. --- package-lock.json | 2 +- package.json | 2 +- src/smartcontracts/typesystem/typeMapper.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f103365e..b638585e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@elrondnetwork/erdjs", - "version": "9.2.4", + "version": "9.2.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a9951983..14cce4e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elrondnetwork/erdjs", - "version": "9.2.4", + "version": "9.2.5", "description": "Smart Contracts interaction framework", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/smartcontracts/typesystem/typeMapper.ts b/src/smartcontracts/typesystem/typeMapper.ts index d9cf4f9a..e6d2c9a6 100644 --- a/src/smartcontracts/typesystem/typeMapper.ts +++ b/src/smartcontracts/typesystem/typeMapper.ts @@ -64,7 +64,8 @@ export class TypeMapper { // TODO: Handle these in typeExpressionParser, perhaps? ["array20", (...typeParameters: Type[]) => new ArrayVecType(20, typeParameters[0])], ["array32", (...typeParameters: Type[]) => new ArrayVecType(32, typeParameters[0])], - ["array64", (...typeParameters: Type[]) => new ArrayVecType(64, typeParameters[0])], + ["array46", (...typeParameters: Type[]) => new ArrayVecType(46, typeParameters[0])], + ["array64", (...typeParameters: Type[]) => new ArrayVecType(64, typeParameters[0])] ]); // For closed types, we hold actual type instances instead of type constructors / factories (no type parameters needed). From 2c160f64492178b4071c7ce978e98eb009972b1a Mon Sep 17 00:00:00 2001 From: Andrei Bancioiu Date: Mon, 2 May 2022 16:35:30 +0300 Subject: [PATCH 2/2] Update changelog. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9621fdd..9122e6c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how ## Unreleased - TBD +## [9.2.5] + - [Add extra type for known-length arrays.](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/205) + ## [9.2.4] - [Hardcode class names for classes within erdjs' typesystem.](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/164)