tek-wallet 0.0.317 → 0.0.318
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.
|
@@ -189,6 +189,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
189
189
|
var _a;
|
|
190
190
|
(_a = suggestUseTransferInternalDialogRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
191
191
|
var tokenSet = findWithdrawToken((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.jetton) || "");
|
|
192
|
+
console.warn("🚀 ~ handleSelectTransferInternal ~ tokenSet:", tokenSet);
|
|
192
193
|
if (!tokenSet) {
|
|
193
194
|
gotoStep(WithdrawStep.SELECT_TOKEN);
|
|
194
195
|
}
|
|
@@ -200,10 +201,11 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
200
201
|
setRecipientAddress(recipientAddressInternal);
|
|
201
202
|
setAmount((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) || "");
|
|
202
203
|
};
|
|
203
|
-
var handleSelectContinueTransferExternal = function () {
|
|
204
|
+
var handleSelectContinueTransferExternal = function (dataPromptly) {
|
|
204
205
|
var _a;
|
|
206
|
+
var data = dataPromptly !== null && dataPromptly !== void 0 ? dataPromptly : sendInfoGet;
|
|
205
207
|
(_a = suggestUseTransferInternalDialogRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
206
|
-
var tokenSet = findWithdrawToken((
|
|
208
|
+
var tokenSet = findWithdrawToken((data === null || data === void 0 ? void 0 : data.jetton) || "");
|
|
207
209
|
console.warn("🚀 ~ handleSelectContinueTransferExternal ~ tokenSet:", tokenSet);
|
|
208
210
|
if (!tokenSet) {
|
|
209
211
|
gotoStep(WithdrawStep.SELECT_TOKEN);
|
|
@@ -214,9 +216,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
214
216
|
gotoStep(WithdrawStep.CONFIRM);
|
|
215
217
|
}
|
|
216
218
|
setSelectedMethod(SendMethods.TRANSFER_EXTERNAL);
|
|
217
|
-
setRecipientAddress(
|
|
219
|
+
setRecipientAddress(data === null || data === void 0 ? void 0 : data.address);
|
|
218
220
|
setAmount("12");
|
|
219
|
-
setMemo(
|
|
221
|
+
setMemo(data === null || data === void 0 ? void 0 : data.text);
|
|
220
222
|
};
|
|
221
223
|
var handleSelectMethod = function (method) {
|
|
222
224
|
var _a;
|
|
@@ -319,7 +321,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
319
321
|
}
|
|
320
322
|
else if (!!(validateWalletAddress === null || validateWalletAddress === void 0 ? void 0 : validateWalletAddress.valid)) {
|
|
321
323
|
//external
|
|
322
|
-
handleSelectContinueTransferExternal();
|
|
324
|
+
handleSelectContinueTransferExternal(tonTransferParam);
|
|
323
325
|
console.warn("external");
|
|
324
326
|
}
|
|
325
327
|
else {
|