@depay/widgets 12.2.1 → 12.3.1

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
@@ -23756,7 +23756,8 @@ var SignLoginDialog = (function (props) {
23756
23756
  if (typeof recoverSignature != 'function') {
23757
23757
  recoverSignature = function recoverSignature(_ref) {
23758
23758
  var message = _ref.message,
23759
- signature = _ref.signature;
23759
+ signature = _ref.signature,
23760
+ wallet = _ref.wallet;
23760
23761
  return new Promise(function (resolve, reject) {
23761
23762
  fetch(endpoint, {
23762
23763
  method: 'POST',
@@ -23765,7 +23766,10 @@ var SignLoginDialog = (function (props) {
23765
23766
  },
23766
23767
  body: JSON.stringify({
23767
23768
  message: message,
23768
- signature: signature
23769
+ signature: signature,
23770
+ wallet: {
23771
+ name: wallet.name
23772
+ }
23769
23773
  })
23770
23774
  }).then(function (response) {
23771
23775
  if (response.status == 200) {
@@ -23792,7 +23796,8 @@ var SignLoginDialog = (function (props) {
23792
23796
  wallet.sign(messageToSign).then(function (signature) {
23793
23797
  recoverSignature({
23794
23798
  message: messageToSign,
23795
- signature: signature
23799
+ signature: signature,
23800
+ wallet: wallet
23796
23801
  }).then(function (account) {
23797
23802
  props.resolve({
23798
23803
  account: account,