@multiversx/sdk-dapp-liquidity 1.1.1-alpha.1 → 1.1.1-alpha.4
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/package.json
CHANGED
|
@@ -519,16 +519,29 @@ const Transfer = ({
|
|
|
519
519
|
}, [secondTokenAmount]);
|
|
520
520
|
React.useEffect(() => {
|
|
521
521
|
if (latestMvxTransactionHash) {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
522
|
+
try {
|
|
523
|
+
const txHash = latestMvxTransactionHash;
|
|
524
|
+
sendTransactions({
|
|
525
|
+
transactions: latestTransactions.map((tx) => ({
|
|
526
|
+
...tx,
|
|
527
|
+
txHash,
|
|
528
|
+
receiver: account.address
|
|
529
|
+
})),
|
|
530
|
+
provider: (rate == null ? void 0 : rate.provider) ?? types_providerType.ProviderType.None,
|
|
531
|
+
url: helpers_getApiURL.getApiURL() ?? "",
|
|
532
|
+
token: nativeAuthToken ?? ""
|
|
533
|
+
});
|
|
534
|
+
onSuccessfullySentTransaction == null ? void 0 : onSuccessfullySentTransaction([txHash]);
|
|
535
|
+
} catch (err) {
|
|
536
|
+
console.error("Error while sending transactions:", err);
|
|
537
|
+
onFailedSentTransaction == null ? void 0 : onFailedSentTransaction(
|
|
538
|
+
"An error occurred while sending the transaction"
|
|
539
|
+
);
|
|
540
|
+
return;
|
|
541
|
+
} finally {
|
|
542
|
+
resetMvxTransactionHash == null ? void 0 : resetMvxTransactionHash();
|
|
543
|
+
setLatestTransactions([]);
|
|
544
|
+
}
|
|
532
545
|
}
|
|
533
546
|
}, [
|
|
534
547
|
latestMvxTransactionHash,
|
|
@@ -516,16 +516,29 @@ const Transfer = ({
|
|
|
516
516
|
}, [secondTokenAmount]);
|
|
517
517
|
useEffect(() => {
|
|
518
518
|
if (latestMvxTransactionHash) {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
519
|
+
try {
|
|
520
|
+
const txHash = latestMvxTransactionHash;
|
|
521
|
+
sendTransactions({
|
|
522
|
+
transactions: latestTransactions.map((tx) => ({
|
|
523
|
+
...tx,
|
|
524
|
+
txHash,
|
|
525
|
+
receiver: account.address
|
|
526
|
+
})),
|
|
527
|
+
provider: (rate == null ? void 0 : rate.provider) ?? ProviderType.None,
|
|
528
|
+
url: getApiURL() ?? "",
|
|
529
|
+
token: nativeAuthToken ?? ""
|
|
530
|
+
});
|
|
531
|
+
onSuccessfullySentTransaction == null ? void 0 : onSuccessfullySentTransaction([txHash]);
|
|
532
|
+
} catch (err) {
|
|
533
|
+
console.error("Error while sending transactions:", err);
|
|
534
|
+
onFailedSentTransaction == null ? void 0 : onFailedSentTransaction(
|
|
535
|
+
"An error occurred while sending the transaction"
|
|
536
|
+
);
|
|
537
|
+
return;
|
|
538
|
+
} finally {
|
|
539
|
+
resetMvxTransactionHash == null ? void 0 : resetMvxTransactionHash();
|
|
540
|
+
setLatestTransactions([]);
|
|
541
|
+
}
|
|
529
542
|
}
|
|
530
543
|
}, [
|
|
531
544
|
latestMvxTransactionHash,
|