Skip to content

Commit

Permalink
fix: update deep link url
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Jun 26, 2024
1 parent fdd93f5 commit 4948d0c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
4 changes: 3 additions & 1 deletion examples/simple-dapp/public/.well-known/radix.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"callbackPath": "/connect",
"dApps": [
{}
{
"dAppDefinitionAddress": "account_tdx_2_12yf9gd53yfep7a669fv2t3wm7nz9zeezwd04n02a433ker8vza6rhe"
}
]
}
2 changes: 0 additions & 2 deletions examples/simple-dapp/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ ${JSON.stringify(rest, null, 2)}
${logs.innerHTML}`

localStorage.setItem('logs', logEntry)

logs.innerHTML = logEntry
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export const DeepLinkModule = (input: {
const { platform } = userAgent
const logger = input?.logger?.getSubLogger({ name: 'DeepLinkModule' })

logger?.debug({
platform,
userAgent: window.navigator.userAgent,
userAgentParsed: userAgent,
})

const deepLinkToWallet = (
values: Record<string, string>,
): ResultAsync<undefined, SdkError> => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const WalletRequestModule = (input: {
transports.push(
RadixConnectRelayModule({
logger,
walletUrl: 'radixWallet://',
walletUrl: 'radixWallet://connect',
baseUrl: 'https://radix-connect-relay.radixdlt.com',
dAppDefinitionAddress: input.dAppDefinitionAddress,
providers: {
Expand Down
30 changes: 13 additions & 17 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local"
"globalDependencies": ["**/.env.*local"],
"globalEnv": [
"AWS_REGION",
"AWS_PROFILE",
"AWS_STAGE",
"DAPP_DEFINITION_ADDRESS",
"NGROK_AUTH_TOKEN"
],
"tasks": {
"build": {
"cache": false,
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"lint": {
"dependsOn": [
"^lint"
]
"dependsOn": ["^lint"]
},
"dev": {
"cache": false,
"persistent": true
},
"deploy": {
"cache": false,
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
"dependsOn": ["^build"],
"outputs": ["dist/**"],
"inputs": ["$TURBO_DEFAULT$"]
},
"test": {
"cache": false
Expand Down

0 comments on commit 4948d0c

Please sign in to comment.