@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/umd/index.js CHANGED
@@ -23752,7 +23752,8 @@
23752
23752
  if (typeof recoverSignature != 'function') {
23753
23753
  recoverSignature = function recoverSignature(_ref) {
23754
23754
  var message = _ref.message,
23755
- signature = _ref.signature;
23755
+ signature = _ref.signature,
23756
+ wallet = _ref.wallet;
23756
23757
  return new Promise(function (resolve, reject) {
23757
23758
  fetch(endpoint, {
23758
23759
  method: 'POST',
@@ -23761,7 +23762,10 @@
23761
23762
  },
23762
23763
  body: JSON.stringify({
23763
23764
  message: message,
23764
- signature: signature
23765
+ signature: signature,
23766
+ wallet: {
23767
+ name: wallet.name
23768
+ }
23765
23769
  })
23766
23770
  }).then(function (response) {
23767
23771
  if (response.status == 200) {
@@ -23788,7 +23792,8 @@
23788
23792
  wallet.sign(messageToSign).then(function (signature) {
23789
23793
  recoverSignature({
23790
23794
  message: messageToSign,
23791
- signature: signature
23795
+ signature: signature,
23796
+ wallet: wallet
23792
23797
  }).then(function (account) {
23793
23798
  props.resolve({
23794
23799
  account: account,