@typeberry/convert 0.5.10-47fe638 → 0.5.10-9567cee

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -5924,6 +5924,7 @@ class descriptor_Descriptor {
5924
5924
 
5925
5925
 
5926
5926
 
5927
+
5927
5928
  function tryAsExactBytes(a) {
5928
5929
  check `${a.isExact} The value is not exact size estimation!`;
5929
5930
  return a.bytes;
@@ -6073,12 +6074,12 @@ class encoder_Encoder {
6073
6074
  this.offset += 1;
6074
6075
  }
6075
6076
  /**
6076
- * Encode a single boolean discriminator using variable encoding.
6077
+ * Encode a single boolean discriminator using 1-byte encoding.
6077
6078
  *
6078
6079
  * https://graypaper.fluffylabs.dev/#/579bd12/375300375300
6079
6080
  */
6080
6081
  bool(bool) {
6081
- this.varU32(numbers_tryAsU32(bool ? 1 : 0));
6082
+ this.i8(tryAsU8(bool ? 1 : 0));
6082
6083
  }
6083
6084
  /**
6084
6085
  * Prepare for encoding of a fixed-bytes number.