@ututrust/web-components 1.1.16 → 1.1.17

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/index.js CHANGED
@@ -33588,7 +33588,7 @@
33588
33588
  // @ts-ignore
33589
33589
 
33590
33590
 
33591
- if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID])) return null;
33591
+ if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || props[ATTR_TRANSACTION_ID]) return null;
33592
33592
 
33593
33593
  var switchNetwork = /*#__PURE__*/function () {
33594
33594
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -33639,7 +33639,7 @@
33639
33639
  }();
33640
33640
 
33641
33641
  var sendTransaction = /*#__PURE__*/function () {
33642
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount) {
33642
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount, transactionId) {
33643
33643
  var web3Provider, signer, wei, contract, transaction;
33644
33644
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
33645
33645
  while (1) {
@@ -33657,7 +33657,7 @@
33657
33657
  wei = String(Number(amount) * 10e17);
33658
33658
  contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
33659
33659
  _context2.next = 8;
33660
- return contract.endorse(address, String(wei));
33660
+ return contract.endorse(address, String(wei), transactionId);
33661
33661
 
33662
33662
  case 8:
33663
33663
  transaction = _context2.sent;
@@ -33675,12 +33675,12 @@
33675
33675
  }, _callee2);
33676
33676
  }));
33677
33677
 
33678
- return function sendTransaction(_x, _x2) {
33678
+ return function sendTransaction(_x, _x2, _x3) {
33679
33679
  return _ref2.apply(this, arguments);
33680
33680
  };
33681
33681
  }();
33682
33682
 
33683
- function onSubmit(_x3) {
33683
+ function onSubmit(_x4) {
33684
33684
  return _onSubmit.apply(this, arguments);
33685
33685
  }
33686
33686
 
@@ -33704,7 +33704,7 @@
33704
33704
  setTxError("");
33705
33705
  _context3.prev = 4;
33706
33706
  _context3.next = 7;
33707
- return sendTransaction(props[ATTR_TARGET_UUID], amount);
33707
+ return sendTransaction(props[ATTR_TARGET_UUID], amount, props[ATTR_TRANSACTION_ID]);
33708
33708
 
33709
33709
  case 7:
33710
33710
  _context3.next = 12;