Skip to content

Commit

Permalink
fix: crash in bindings generator on boolean value in dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
ex3ndr committed Mar 20, 2023
1 parent aaec90f commit 2f8b709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

## Fixed
- Deep structure with optionals not emitted in some cases
- Some functions for deep structures with optionals not emitted
- Crash in bindings generator on boolean value in dictionary

## [1.1.0-beta.0] - 2023-03-14

Expand Down
2 changes: 2 additions & 0 deletions src/bindings/typescript/serializers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,8 @@ let map: Serializer<MapSerializerDescr> = {
let valueT: string;
if (v.value.kind === 'int' || v.value.kind === 'uint') {
valueT = `bigint`;
} else if (v.value.kind === 'boolean') {
valueT = `boolean`;
} else if (v.value.kind === 'address') {
valueT = `Address`;
} else if (v.value.kind === 'cell') {
Expand Down

0 comments on commit 2f8b709

Please sign in to comment.