@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.mjs
CHANGED
|
@@ -568,13 +568,14 @@ var MwaWalletAdapter = class {
|
|
|
568
568
|
return signed;
|
|
569
569
|
}
|
|
570
570
|
async signMessage(message) {
|
|
571
|
-
if (!this._connected || !this._publicKey
|
|
571
|
+
if (!this._connected || !this._publicKey) throw new Error("Wallet not connected");
|
|
572
572
|
const sig = await this.transact(async (wallet) => {
|
|
573
573
|
const reauth = await wallet.reauthorize({ auth_token: this._authToken });
|
|
574
574
|
this._authToken = reauth.auth_token;
|
|
575
|
+
this._mwaAddress = reauth.accounts[0].address;
|
|
575
576
|
this.config.onAuthTokenChange?.(this._authToken);
|
|
576
577
|
const result = await wallet.signMessages({
|
|
577
|
-
addresses: [
|
|
578
|
+
addresses: [reauth.accounts[0].address],
|
|
578
579
|
payloads: [message]
|
|
579
580
|
});
|
|
580
581
|
return result[0];
|