herald-exchange-offramp-widget 1.0.1 → 1.0.3
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/Readme.md +10 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/SellAdminCryptoAccount.tsx +7 -5
package/package.json
CHANGED
@@ -200,7 +200,7 @@ const SellAdminCryptoAccount = ({
|
|
200
200
|
const currency = tokenSellData.selectedCrypto;
|
201
201
|
const expected_amount = tokenSellData.from_amount;
|
202
202
|
|
203
|
-
if (walletAddress) {
|
203
|
+
if (walletAddress && mode === "production") {
|
204
204
|
const startTimestamp = Date.now();
|
205
205
|
// let rpcUrl = SUPPORTED_RPC_NODES[SupportedTokens[token]];
|
206
206
|
|
@@ -218,6 +218,8 @@ const SellAdminCryptoAccount = ({
|
|
218
218
|
fetchTransactions(token, walletAddress, startTimestamp, expected_amount);
|
219
219
|
}
|
220
220
|
}, 10000);
|
221
|
+
} else {
|
222
|
+
handleManualHash();
|
221
223
|
}
|
222
224
|
// generateQRDetails(walletAddress, token, tokenSellData.from_currency);
|
223
225
|
}
|
@@ -422,10 +424,10 @@ const SellAdminCryptoAccount = ({
|
|
422
424
|
setMonitoring(false);
|
423
425
|
};
|
424
426
|
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
427
|
+
const handleManualHash = () => {
|
428
|
+
setMonitoring(false);
|
429
|
+
setAutomaticHash(false);
|
430
|
+
};
|
429
431
|
|
430
432
|
return (
|
431
433
|
<>
|