diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0191fc282..be518ec39 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,9 +6,6 @@ simple guidelines. * Make sure you run `npx eslint .` to check for code formatting problems. You can use the `--fix` flag to automatically fix any issues the linter catches. * Before adding any code dependencies, check with the maintainers if this is okay. -* When using configuration parameters, eg. API URLs, API tokens or contract addresses, - add them to `config.json` and pass the `Config` object to functions that require - access to this configuraiton. * Write properly formatted comments: they should be english sentences, eg: // Return the current UNIX time. diff --git a/src/Address.svelte b/src/Address.svelte index 90517c476..9f4754fa7 100644 --- a/src/Address.svelte +++ b/src/Address.svelte @@ -12,10 +12,10 @@ import { Profile, ProfileType } from "@app/profile"; import Avatar from "@app/Avatar.svelte"; import Badge from "@app/Badge.svelte"; - import type { Config } from "@app/config"; + import type { Wallet } from "@app/wallet"; export let address: string; - export let config: Config; + export let wallet: Wallet; export let resolve = false; export let noBadge = false; export let noAvatar = false; @@ -32,12 +32,12 @@ onMount(async () => { if (!profile) { - identifyAddress(address, config).then( + identifyAddress(address, wallet).then( (t: AddressType) => (addressType = t), ); if (resolve) { - Profile.get(address, ProfileType.Minimal, config).then( + Profile.get(address, ProfileType.Minimal, wallet).then( p => (profile = p), ); } @@ -49,7 +49,7 @@ $: addressLabel = resolve && profile?.name ? compact - ? parseEnsLabel(profile.name, config) + ? parseEnsLabel(profile.name, wallet) : profile.name : checksumAddress; $: checksumAddress = compact @@ -100,7 +100,7 @@ org {/if} {:else if addressType === AddressType.Contract} - + {addressLabel} {#if !noBadge} @@ -110,7 +110,7 @@ {addressLabel} {:else} - + {addressLabel} {/if} diff --git a/src/App.svelte b/src/App.svelte index ac5107881..cb95f620d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,6 +1,6 @@