Skip to content

Commit

Permalink
fixup! Link to ABI playground from verified contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Aug 2, 2024
1 parent c488e1a commit 0834380
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/components/ContractVerificationIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ export const VerificationIcon: FC<{

const scopeToPlaygroundURL: Record<Network, Partial<Record<Layer, string>>> = {
[Network.mainnet]: {
[Layer.emerald]: `https://abi-playground.oasis.io/?network=42262&contractAddress=${address_eth}`,
[Layer.sapphire]: `https://abi-playground.oasis.io/?network=23294&contractAddress=${address_eth}`,
[Layer.emerald]: `${externalLinks.dapps.abiPlayground}?network=42262&contractAddress=${address_eth}`,
[Layer.sapphire]: `${externalLinks.dapps.abiPlayground}?network=23294&contractAddress=${address_eth}`,
},
[Network.testnet]: {
[Layer.emerald]: `https://abi-playground.oasis.io/?network=42261&contractAddress=${address_eth}`,
[Layer.sapphire]: `https://abi-playground.oasis.io/?network=23295&contractAddress=${address_eth}`,
[Layer.emerald]: `${externalLinks.dapps.abiPlayground}?network=42261&contractAddress=${address_eth}`,
[Layer.sapphire]: `${externalLinks.dapps.abiPlayground}?network=23295&contractAddress=${address_eth}`,
},
}
const abiPlaygroundLinkProps = {
Expand Down
1 change: 1 addition & 0 deletions src/app/utils/externalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const faucets = {
export const dapps = {
wRose: 'https://wrose.oasis.io/',
sourcifyRoot: 'https://sourcify.dev/',
abiPlayground: 'https://abi-playground.oasis.io/',
}

export const api = {
Expand Down

0 comments on commit 0834380

Please sign in to comment.