@dubsdotapp/expo 0.2.25 → 0.2.26
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/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/wallet/mwa-adapter.ts +4 -2
package/dist/index.js
CHANGED
|
@@ -634,13 +634,14 @@ var MwaWalletAdapter = class {
|
|
|
634
634
|
return signed;
|
|
635
635
|
}
|
|
636
636
|
async signMessage(message) {
|
|
637
|
-
if (!this._connected || !this._publicKey
|
|
637
|
+
if (!this._connected || !this._publicKey) throw new Error("Wallet not connected");
|
|
638
638
|
const sig = await this.transact(async (wallet) => {
|
|
639
639
|
const reauth = await wallet.reauthorize({ auth_token: this._authToken });
|
|
640
640
|
this._authToken = reauth.auth_token;
|
|
641
|
+
this._mwaAddress = reauth.accounts[0].address;
|
|
641
642
|
this.config.onAuthTokenChange?.(this._authToken);
|
|
642
643
|
const result = await wallet.signMessages({
|
|
643
|
-
addresses: [
|
|
644
|
+
addresses: [reauth.accounts[0].address],
|
|
644
645
|
payloads: [message]
|
|
645
646
|
});
|
|
646
647
|
return result[0];
|