@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.
@@ -23795,8 +23795,8 @@
23795
23795
  if (typeof recoverSignature != 'function') {
23796
23796
  recoverSignature = function recoverSignature(_ref) {
23797
23797
  var message = _ref.message,
23798
- signature = _ref.signature;
23799
- _ref.wallet;
23798
+ signature = _ref.signature,
23799
+ wallet = _ref.wallet;
23800
23800
  return new Promise(function (resolve, reject) {
23801
23801
  fetch(endpoint, {
23802
23802
  method: 'POST',
@@ -23805,7 +23805,10 @@
23805
23805
  },
23806
23806
  body: JSON.stringify({
23807
23807
  message: message,
23808
- signature: signature
23808
+ signature: signature,
23809
+ wallet: {
23810
+ name: wallet.name
23811
+ }
23809
23812
  })
23810
23813
  }).then(function (response) {
23811
23814
  if (response.status == 200) {
@@ -23832,7 +23835,8 @@
23832
23835
  wallet.sign(messageToSign).then(function (signature) {
23833
23836
  recoverSignature({
23834
23837
  message: messageToSign,
23835
- signature: signature
23838
+ signature: signature,
23839
+ wallet: wallet
23836
23840
  }).then(function (account) {
23837
23841
  props.resolve({
23838
23842
  account: account,