From 30913128af2211efa759466bb8a3abe593db1bc5 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 10 May 2024 23:41:14 +0000 Subject: [PATCH] Update content of files --- data/web/fragment.com/js/auction.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/data/web/fragment.com/js/auction.js b/data/web/fragment.com/js/auction.js index 24d42557f8..3ede583ca7 100644 --- a/data/web/fragment.com/js/auction.js +++ b/data/web/fragment.com/js/auction.js @@ -643,7 +643,6 @@ var Wallet = { wallet.connectItems.tonProof.proof) { Aj.apiRequest('checkTonProofAuth', { account: JSON.stringify(wallet.account), - device: JSON.stringify(wallet.device), proof: JSON.stringify(wallet.connectItems.tonProof.proof) }, function(result) { if (result.verified) { @@ -666,17 +665,12 @@ var Wallet = { sendTransaction: function(options) { if (Aj.globalState.tonConnectVersion == 2) { var tonConnectUI = Aj.globalState.tonConnectUI; - var wallet = tonConnectUI.wallet || {}; var sendTransaction = function(data) { var transaction = data.transaction; tonConnectUI.sendTransaction(transaction).then(function(transaction) { options.onConfirm && options.onConfirm(true); if (data.confirm_method) { - var params = $.extend({ - account: JSON.stringify(wallet.account), - device: JSON.stringify(wallet.device), - boc: transaction.boc - }, data.confirm_params); + var params = $.extend({boc: transaction.boc}, data.confirm_params); Aj.apiRequest(data.confirm_method, params); } }).catch(function(){}); @@ -684,11 +678,7 @@ var Wallet = { if (!tonConnectUI.connected) { tonConnectUI.openModal(); } else if (options.request) { - var req = options.request, params = $.extend({ - account: JSON.stringify(wallet.account), - device: JSON.stringify(wallet.device), - transaction: 1 - }, req.params); + var req = options.request, params = $.extend({transaction: 1}, req.params); Aj.apiRequest(req.method, params, function(result) { if (result.error) { return showAlert(result.error); @@ -2572,12 +2562,15 @@ var Ads = { eAddMoreFunds: function(e) { e.preventDefault(); e.stopImmediatePropagation(); - var href = this.href; Aj.apiRequest('repeatAdsAddFunds', {}, function(result) { if (result.error) { return showAlert(result.error); } - Aj.location(href); + if (result.redirect_to) { + Aj.reload(); + } else { + + } }); }, eWithdrawRevenue: function(e) {