@depay/widgets 7.7.0 → 7.8.0

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/dist/umd/index.js CHANGED
@@ -835,7 +835,6 @@
835
835
  setWallet = _useState4[1];
836
836
 
837
837
  var connect = function connect(wallet) {
838
- console.log('CONNECT');
839
838
  wallet.connect().then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
840
839
  var accounts;
841
840
  return regenerator.wrap(function _callee$(_context) {
@@ -21207,6 +21206,8 @@
21207
21206
  };
21208
21207
 
21209
21208
  var startTracking = function startTracking(transaction, afterBlock, paymentRoute, attempt) {
21209
+ var _paymentRoute$feeAmou;
21210
+
21210
21211
  callTracking({
21211
21212
  blockchain: transaction.blockchain,
21212
21213
  transaction: transaction.id.toLowerCase(),
@@ -21214,7 +21215,8 @@
21214
21215
  nonce: transaction.nonce,
21215
21216
  after_block: afterBlock,
21216
21217
  to_token: paymentRoute.toToken.address,
21217
- to_amount: paymentRoute.toAmount.toString()
21218
+ to_amount: paymentRoute.toAmount.toString(),
21219
+ fee_amount: paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString()
21218
21220
  }).then(function (response) {
21219
21221
  if (response.status != 200) {
21220
21222
  retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "7.7.0",
4
+ "version": "7.8.0",
5
5
  "description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
6
6
  "main": "./dist/umd/index.js",
7
7
  "module": "./dist/esm/index.js",
@@ -44,7 +44,7 @@
44
44
  "@depay/web3-client": "^8.5.0",
45
45
  "@depay/web3-constants": "^6.0.0",
46
46
  "@depay/web3-exchanges": "^9.2.0",
47
- "@depay/web3-payments": "^10.5.0",
47
+ "@depay/web3-payments": "^10.6.0",
48
48
  "@depay/web3-tokens": "^8.2.0",
49
49
  "@depay/web3-wallets": "^11.1.0",
50
50
  "decimal.js": "^10.3.1"