From 67f96a7ccf5254efc176a569fe465e44a1212673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Wed, 27 Mar 2024 17:10:03 +0100 Subject: [PATCH 1/2] Fix RestrictedAddress discriminator usage --- bindings/nodejs/CHANGELOG.md | 6 ++++++ bindings/nodejs/lib/types/block/address.ts | 1 + bindings/wasm/CHANGELOG.md | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/bindings/nodejs/CHANGELOG.md b/bindings/nodejs/CHANGELOG.md index cf50ed0f67..a4b670d13a 100644 --- a/bindings/nodejs/CHANGELOG.md +++ b/bindings/nodejs/CHANGELOG.md @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security --> +## 2.0.0-alpha.2 - 2024-MM-DD + +### Fixed + +- `RestrictedAddress` discriminator usage; + ## 2.0.0-alpha.1 - 2024-03-22 Initial alpha release of the Nodejs 2.0 bindings. diff --git a/bindings/nodejs/lib/types/block/address.ts b/bindings/nodejs/lib/types/block/address.ts index 9bd00a9620..606b8c7c00 100644 --- a/bindings/nodejs/lib/types/block/address.ts +++ b/bindings/nodejs/lib/types/block/address.ts @@ -206,6 +206,7 @@ class RestrictedAddress extends Address { */ @Type(() => Address, { discriminator: RestrictedAddressDiscriminator, + keepDiscriminatorProperty: true, }) readonly address: Address; /** diff --git a/bindings/wasm/CHANGELOG.md b/bindings/wasm/CHANGELOG.md index b415752816..aba497562a 100644 --- a/bindings/wasm/CHANGELOG.md +++ b/bindings/wasm/CHANGELOG.md @@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security --> +## 2.0.0-alpha.2 - 2024-MM-DD + +Same changes as https://github.com/iotaledger/iota-sdk/blob/develop/bindings/nodejs/CHANGELOG.md. + ## 2.0.0-alpha.1 - 2024-03-26 Initial alpha release of the wasm 2.0 bindings. From f8a67a186d3eaf5801f16e5583a8ce31e69587b9 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Wed, 27 Mar 2024 22:04:11 +0100 Subject: [PATCH 2/2] Update bindings/wasm/CHANGELOG.md --- bindings/wasm/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/wasm/CHANGELOG.md b/bindings/wasm/CHANGELOG.md index aba497562a..152439b59b 100644 --- a/bindings/wasm/CHANGELOG.md +++ b/bindings/wasm/CHANGELOG.md @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 2.0.0-alpha.2 - 2024-MM-DD -Same changes as https://github.com/iotaledger/iota-sdk/blob/develop/bindings/nodejs/CHANGELOG.md. +Same changes as https://github.com/iotaledger/iota-sdk/blob/2.0/bindings/nodejs/CHANGELOG.md. ## 2.0.0-alpha.1 - 2024-03-26