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