@hawksightco/hawk-sdk 1.2.94 → 1.2.96

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.
@@ -855,7 +855,7 @@ function deserializeParametersFromIDL(idl, instruction, data) {
855
855
  const discriminator = tokens.readBuffer(8);
856
856
  const params = {};
857
857
  const ixDefinition = idl.instructions.find((ix) => ix.name === instruction);
858
- if (!discriminator.equals(Buffer.from(ixDefinition.discriminator))) {
858
+ if (!discriminator.equals(Uint8Array.from(ixDefinition.discriminator))) {
859
859
  throw new Error(`deserializeParametersFromIDL: Discriminator mismatch.`);
860
860
  }
861
861
  for (const arg of ixDefinition.args) {