Skip to content

Commit

Permalink
Update Dappflow URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentRhetoric committed Jan 20, 2024
1 parent 79ad6ec commit 53dee4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-algo-wallets",
"version": "0.1.5",
"version": "0.1.6",
"description": "Integrate multiple Algorand wallets with a SolidJS web application client",
"license": "MIT",
"author": "Brian Whippo <[email protected]>",
Expand Down
8 changes: 4 additions & 4 deletions src/useNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function UseNetwork() {
if (activeNetwork() === 'LocalNet') {
return `${url}/setnetwork?name=sandbox&redirect=explorer/account/${addr}`
} else {
return `${url}/setnetwork?name=${activeNetwork().toLowerCase()}&redirect=explorer/account/${addr}`
return `${url}/setnetwork?name=algonode_${activeNetwork().toLowerCase()}&redirect=explorer/account/${addr}`
}
} else {
return `${url}/account/${addr}` // Allo uses account instead of AE-style "address"
Expand All @@ -95,7 +95,7 @@ function UseNetwork() {
if (activeNetwork() === 'LocalNet') {
return `${url}/setnetwork?name=sandbox&redirect=explorer/asset/${index}`
} else {
return `${url}/setnetwork?name=${activeNetwork().toLowerCase()}&redirect=explorer/asset/${index}`
return `${url}/setnetwork?name=algonode_${activeNetwork().toLowerCase()}&redirect=explorer/asset/${index}`
}
} else {
return `${url}/asset/${index}`
Expand All @@ -108,7 +108,7 @@ function UseNetwork() {
if (activeNetwork() === 'LocalNet') {
return `${url}/setnetwork?name=sandbox&redirect=explorer/transaction/${txId}`
} else {
return `${url}/setnetwork?name=${activeNetwork().toLowerCase()}&redirect=explorer/transaction/${txId}`
return `${url}/setnetwork?name=algonode_${activeNetwork().toLowerCase()}&redirect=explorer/transaction/${txId}`
}
} else {
return `${url}/tx/${txId}`
Expand All @@ -121,7 +121,7 @@ function UseNetwork() {
if (activeNetwork() === 'LocalNet') {
return `${url}/setnetwork?name=sandbox&redirect=explorer/application/${appId}`
} else {
return `${url}/setnetwork?name=${activeNetwork().toLowerCase()}&redirect=explorer/application/${appId}`
return `${url}/setnetwork?name=algonode_${activeNetwork().toLowerCase()}&redirect=explorer/application/${appId}`
}
} else {
return `${url}/application/${appId}`
Expand Down

0 comments on commit 53dee4f

Please sign in to comment.