@m0-foundation/ntt-sdk-route 0.0.15 → 0.0.16

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
@@ -999,7 +999,8 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends sdkConnect.routes.Automa
999
999
  async *transferSolanaExtension(ntt, sender, amount2, recipient, sourceToken, destinationToken, options, outboxItem) {
1000
1000
  const router = new SolanaRoutes(ntt);
1001
1001
  if (router.getSolanaContracts().token === sourceToken) {
1002
- return ntt.transfer(sender, amount2, recipient, options);
1002
+ yield* ntt.transfer(sender, amount2, recipient, options);
1003
+ return;
1003
1004
  }
1004
1005
  const config = await ntt.getConfig();
1005
1006
  if (config.paused) throw new Error("Contract is paused");
package/dist/index.mjs CHANGED
@@ -991,7 +991,8 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends routes.AutomaticRoute {
991
991
  async *transferSolanaExtension(ntt, sender, amount2, recipient, sourceToken, destinationToken, options, outboxItem) {
992
992
  const router = new SolanaRoutes(ntt);
993
993
  if (router.getSolanaContracts().token === sourceToken) {
994
- return ntt.transfer(sender, amount2, recipient, options);
994
+ yield* ntt.transfer(sender, amount2, recipient, options);
995
+ return;
995
996
  }
996
997
  const config = await ntt.getConfig();
997
998
  if (config.paused) throw new Error("Contract is paused");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m0-foundation/ntt-sdk-route",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",