@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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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");
|