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