Skip to content

Commit

Permalink
Update content of files
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed May 11, 2024
1 parent ed816c5 commit ebc0491
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions data/web/fragment.com/js/auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -666,29 +665,20 @@ 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(){});
};
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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ebc0491

Please sign in to comment.