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