Skip to content

Commit

Permalink
Merge pull request #50 from autonomys/feat/display-explorer-url
Browse files Browse the repository at this point in the history
Fix explorer url
  • Loading branch information
marc-aurele-besner authored Dec 12, 2024
2 parents ba8ab15 + 4658026 commit 31e2b09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions smart_contract/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ const config: HardhatUserConfig = {
network: 'taurus',
chainId: 490000,
urls: {
apiURL: 'https://auto-evm.taurus.subspace.network/api',
browserURL: 'https://auto-evm.taurus.subspace.network/',
apiURL: 'https://blockscout.taurus.autonomys.xyz/api',
browserURL: 'https://blockscout.taurus.autonomys.xyz/',
},
},
],
Expand Down
12 changes: 6 additions & 6 deletions web-app/src/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export const nova: Chain = {
public: {
http: [process.env.NEXT_PUBLIC_RPC_ENDPOINT || '']
}
},
blockExplorers: {
default: {
name: 'Autonomys Taurus Blockscout Explorer',
url: 'https://blockscout.taurus.autonomys.xyz/'
}
}
// blockExplorers: {
// default: {
// name: 'Nova Explorer',
// url: 'https://nova.subspace.network'
// }
// }
}

export const networks: Chain[] = [nova, mainnet, hardhat]
4 changes: 2 additions & 2 deletions web-app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ const RequestTokenButton: React.FC<RequestTokenButtonProps> = ({ contract, addre
We&apos;ve requested {formatUnits(withdrawalAmount, 18)} {chain.nativeCurrency.symbol} for
you.
</Text>
{/* <Link href={`${chain.blockExplorers?.default.url}/tx/${res.txResponse.hash}`} target='_blank'>
<Link href={`${chain.blockExplorers?.default.url}/tx/${res.txResponse.hash}`} target='_blank'>
<Button variant='outline' colorScheme='brand' ml='2' size='sm' color='white'>
View on Subspace Explorer
</Button>
</Link> */}
</Link>
</VStack>
</Center>
</Box>
Expand Down

0 comments on commit 31e2b09

Please sign in to comment.