alkanesjs 1.0.8 → 1.1.0

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.
@@ -114545,7 +114545,14 @@ var DecodableAlkanesResponse = class {
114545
114545
  if (!this.borshSchema) {
114546
114546
  throw new Error("decodeTo('object') needs a Borsh schema");
114547
114547
  }
114548
- return (0, import_borsher2.borshDeserialize)(this.borshSchema, buf);
114548
+ try {
114549
+ return (0, import_borsher2.borshDeserialize)(this.borshSchema, buf);
114550
+ } catch (e) {
114551
+ console.log("FAILED TO PARSE: " + this.decoderTable().hex(buf));
114552
+ throw new Error(
114553
+ "Borsh deserialization failed: " + e.message
114554
+ );
114555
+ }
114549
114556
  }
114550
114557
  };
114551
114558
  }