Skip to content

Commit 22bbcc4

Browse files
Merge pull request #205 from ElrondNetwork/hotfix-type-mapper
Add extra type for known-length arrays.
2 parents afda897 + 2c160f6 commit 22bbcc4

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
77
## Unreleased
88
- TBD
99

10+
## [9.2.5]
11+
- [Add extra type for known-length arrays.](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/205)
12+
1013
## [9.2.4]
1114
- [Hardcode class names for classes within erdjs' typesystem.](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/164)
1215

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elrondnetwork/erdjs",
3-
"version": "9.2.4",
3+
"version": "9.2.5",
44
"description": "Smart Contracts interaction framework",
55
"main": "out/index.js",
66
"types": "out/index.d.js",

src/smartcontracts/typesystem/typeMapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export class TypeMapper {
6464
// TODO: Handle these in typeExpressionParser, perhaps?
6565
["array20", (...typeParameters: Type[]) => new ArrayVecType(20, typeParameters[0])],
6666
["array32", (...typeParameters: Type[]) => new ArrayVecType(32, typeParameters[0])],
67-
["array64", (...typeParameters: Type[]) => new ArrayVecType(64, typeParameters[0])],
67+
["array46", (...typeParameters: Type[]) => new ArrayVecType(46, typeParameters[0])],
68+
["array64", (...typeParameters: Type[]) => new ArrayVecType(64, typeParameters[0])]
6869
]);
6970

7071
// For closed types, we hold actual type instances instead of type constructors / factories (no type parameters needed).

0 commit comments

Comments
 (0)