@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/esm/index.js CHANGED
@@ -840,7 +840,6 @@ var ConnectStack = (function (props) {
840
840
  setWallet = _useState4[1];
841
841
 
842
842
  var connect = function connect(wallet) {
843
- console.log('CONNECT');
844
843
  wallet.connect().then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
845
844
  var accounts;
846
845
  return regenerator.wrap(function _callee$(_context) {
@@ -21212,6 +21211,8 @@ var PaymentTrackingProvider = (function (props) {
21212
21211
  };
21213
21212
 
21214
21213
  var startTracking = function startTracking(transaction, afterBlock, paymentRoute, attempt) {
21214
+ var _paymentRoute$feeAmou;
21215
+
21215
21216
  callTracking({
21216
21217
  blockchain: transaction.blockchain,
21217
21218
  transaction: transaction.id.toLowerCase(),
@@ -21219,7 +21220,8 @@ var PaymentTrackingProvider = (function (props) {
21219
21220
  nonce: transaction.nonce,
21220
21221
  after_block: afterBlock,
21221
21222
  to_token: paymentRoute.toToken.address,
21222
- to_amount: paymentRoute.toAmount.toString()
21223
+ to_amount: paymentRoute.toAmount.toString(),
21224
+ fee_amount: paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString()
21223
21225
  }).then(function (response) {
21224
21226
  if (response.status != 200) {
21225
21227
  retryStartTracking(transaction, afterBlock, paymentRoute, attempt);