@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.
- package/dist/src/functions.js +1 -1
- package/dist/src/idl/iyf-extension-idl.d.ts +527 -250
- package/dist/src/idl/iyf-extension-idl.d.ts.map +1 -1
- package/dist/src/idl/iyf-extension-idl.js +545 -268
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts +29 -9
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.d.ts.map +1 -1
- package/dist/src/ixGenerator/IyfExtensionIxGenerator.js +1 -2
- package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts +5 -32
- package/dist/src/ixGenerator/RaydiumIxGenerator.d.ts.map +1 -1
- package/dist/src/ixGenerator/RaydiumIxGenerator.js +25 -5
- package/dist/src/types.d.ts +60 -1
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/src/functions.js
CHANGED
|
@@ -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(
|
|
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) {
|