@dubsdotapp/expo 0.2.11 → 0.2.13
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/provider.tsx +1 -1
- package/src/types.ts +1 -0
- package/src/wallet/phantom-deeplink/phantom-deeplink-adapter.ts +5 -3
package/package.json
CHANGED
package/src/provider.tsx
CHANGED
package/src/types.ts
CHANGED
|
@@ -134,14 +134,16 @@ export class PhantomDeeplinkAdapter implements WalletAdapter {
|
|
|
134
134
|
const redirectLink = `${this.config.redirectUri}/${requestId}`;
|
|
135
135
|
console.log(TAG, `connect() requestId=${requestId} redirectLink=${redirectLink}`);
|
|
136
136
|
|
|
137
|
+
// app_url is required by Phantom — default to redirectUri if not provided
|
|
138
|
+
const appUrl = this.config.appUrl || this.config.redirectUri;
|
|
139
|
+
console.log(TAG, 'Using app_url:', appUrl);
|
|
140
|
+
|
|
137
141
|
const params = new URLSearchParams({
|
|
138
142
|
dapp_encryption_public_key: dappPubBase58,
|
|
139
143
|
cluster: this.config.cluster || 'mainnet-beta',
|
|
140
144
|
redirect_link: redirectLink,
|
|
145
|
+
app_url: appUrl,
|
|
141
146
|
});
|
|
142
|
-
if (this.config.appUrl) {
|
|
143
|
-
params.set('app_url', this.config.appUrl);
|
|
144
|
-
}
|
|
145
147
|
|
|
146
148
|
const url = `https://phantom.app/ul/v1/connect?${params.toString()}`;
|
|
147
149
|
console.log(TAG, 'Opening Phantom connect deeplink...');
|