Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Address links to explorer when contract
Alexis Sellier committed 4 years ago
commit 0220f9694761d06af8ddc6926833b92d2375d1fc
parent 28bfe1f81bce168df0dd2e57aad6f7aa2ca6709f
1 file changed +2 -2
modified src/Address.svelte
@@ -2,7 +2,7 @@
  import { onMount } from 'svelte';
  import { link } from 'svelte-routing';
  import { ethers } from 'ethers';
-
  import { safeLink, identifyAddress, formatAddress, AddressType } from '@app/utils';
+
  import { safeLink, explorerLink, identifyAddress, formatAddress, AddressType } from '@app/utils';
  import Loading from '@app/Loading.svelte';
  import Avatar from "@app/Avatar.svelte";
  import type { Config } from '@app/config';
@@ -68,7 +68,7 @@
    <a href={safeLink(address, config)} target="_blank">{addressLabel}</a>
    <span class="badge safe">safe</span>
  {:else if addressType === AddressType.Contract}
-
    <a href={`/orgs/${address}`} target="_blank">{addressLabel}</a>
+
    <a href={explorerLink(address, config)} target="_blank">{addressLabel}</a>
    <span class="badge">contract</span>
  {:else if addressType === AddressType.EOA}
    <a href={`/users/${address}`} target="_blank">{addressLabel}</a>