From d061f4e1ec97ac2175a326bddd82f6a5ef89272f Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Tue, 20 Sep 2022 23:51:32 +0100 Subject: [PATCH] fix: optional fields not populated if wire type has additional fields (#627) * fix: optional fields not populated if wire type has additional fields * update changelog * improve test description * Simplify field names in test --- docs/generated/changelog.html | 4 ++++ packages/candid/src/idl.test.ts | 17 +++++++++++++++++ packages/candid/src/idl.ts | 25 +++++++++++++------------ 3 files changed, 34 insertions(+), 12 deletions(-) diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html index c50a75442..f9a9e99e4 100644 --- a/docs/generated/changelog.html +++ b/docs/generated/changelog.html @@ -39,6 +39,10 @@

Version 0.13.3

This can be used to set proper Expiry times when a device has fallen out of sync with the replica. +
  • + Fixes a candid bug where when decoding, optional fields could be skipped if the data on + the wire contains additional fields. +
  • Version 0.13.2