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