@m0-foundation/ntt-sdk-route 0.0.11 → 0.0.12

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/index.js CHANGED
@@ -514,13 +514,27 @@ var SolanaRoutes = class _SolanaRoutes {
514
514
  additionalPayload.slice(8, 40)
515
515
  );
516
516
  if (destinationMint.equals(ntt.config.mint)) {
517
- return [
518
- await sdkSolanaNtt.NTT.createReleaseInboundMintInstruction(
519
- ntt.program,
520
- ntt.config,
521
- args
522
- )
523
- ];
517
+ const ix = await sdkSolanaNtt.NTT.createReleaseInboundMintInstruction(
518
+ ntt.program,
519
+ ntt.config,
520
+ args
521
+ );
522
+ ix.keys.push(
523
+ {
524
+ pubkey: router.programs.earn,
525
+ isSigner: false,
526
+ isWritable: false
527
+ },
528
+ {
529
+ pubkey: web3_js.PublicKey.findProgramAddressSync(
530
+ [Buffer.from("global")],
531
+ router.programs.earn
532
+ )[0],
533
+ isSigner: false,
534
+ isWritable: true
535
+ }
536
+ );
537
+ return [ix];
524
538
  }
525
539
  const extPrograms = router.extPrograms[destinationMint.toBase58()];
526
540
  if (!extPrograms) {
package/dist/index.mjs CHANGED
@@ -508,13 +508,27 @@ var SolanaRoutes = class _SolanaRoutes {
508
508
  additionalPayload.slice(8, 40)
509
509
  );
510
510
  if (destinationMint.equals(ntt.config.mint)) {
511
- return [
512
- await NTT.createReleaseInboundMintInstruction(
513
- ntt.program,
514
- ntt.config,
515
- args
516
- )
517
- ];
511
+ const ix = await NTT.createReleaseInboundMintInstruction(
512
+ ntt.program,
513
+ ntt.config,
514
+ args
515
+ );
516
+ ix.keys.push(
517
+ {
518
+ pubkey: router.programs.earn,
519
+ isSigner: false,
520
+ isWritable: false
521
+ },
522
+ {
523
+ pubkey: PublicKey.findProgramAddressSync(
524
+ [Buffer.from("global")],
525
+ router.programs.earn
526
+ )[0],
527
+ isSigner: false,
528
+ isWritable: true
529
+ }
530
+ );
531
+ return [ix];
518
532
  }
519
533
  const extPrograms = router.extPrograms[destinationMint.toBase58()];
520
534
  if (!extPrograms) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m0-foundation/ntt-sdk-route",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",