diff --git a/src/base/orgs/View.svelte b/src/base/orgs/View.svelte
index 01810111e..927995df8 100644
--- a/src/base/orgs/View.svelte
+++ b/src/base/orgs/View.svelte
@@ -220,7 +220,7 @@
{:then projects}
{#each projects as project}
{/each}
{:catch err}
diff --git a/src/base/projects/Widget.svelte b/src/base/projects/Widget.svelte
index f4b7d8027..bd58bbdfd 100644
--- a/src/base/projects/Widget.svelte
+++ b/src/base/projects/Widget.svelte
@@ -16,13 +16,15 @@
export let project: proj.Project;
export let config: Config;
export let org: string | undefined;
+ export let seed: string | undefined;
let state: State = { status: Status.Loading };
let info: proj.Info | null = null;
onMount(async () => {
try {
- const result = await proj.getInfo(project.id, config);
+ const cfg = seed ? config.withSeed(seed) : config;
+ const result = await proj.getInfo(project.id, cfg);
state = { status: Status.Loaded };
info = result;
} catch (err) {
diff --git a/src/config.ts b/src/config.ts
index 575fcc8c3..f3749c2d0 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -72,6 +72,15 @@ export class Config {
this.provider,
);
}
+
+ // Return the config with an overwritten seed URL.
+ withSeed(seed: string): Config {
+ const cfg = {} as Config;
+ Object.assign(cfg, this);
+ cfg.seed.api = seed;
+
+ return cfg;
+ }
}
/// Gas limits for various transactions.
diff --git a/src/profile.ts b/src/profile.ts
index f6e920583..c6a48de30 100644
--- a/src/profile.ts
+++ b/src/profile.ts
@@ -54,6 +54,11 @@ export class Profile {
else return undefined;
}
+ // Using undefined as return type if nothing to be returned since it works better with links
+ get seed(): string | undefined {
+ return this.profile?.ens?.seed ?? undefined;
+ }
+
// Keeping this function private since the desired entrypoint is .get()
private static async lookupAddress(address: string, config: Config): Promise<[IProfile, string]> {
const profile: IProfile = { ens: null, idx: null };