From 7eff5995c7417dce60a20bb215959d04bbdd908e Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Wed, 18 Jan 2023 20:54:49 +0100 Subject: [PATCH] Add `seedGit` to `getRegistration` destructuring We were destructuring an array of promises into individual values, but we forgot to add `seedGit` as a new value, this gave issues for the creation of a new EnsProfile. Signed-off-by: Sebastian Martinez --- src/lib/registrar.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/lib/registrar.ts b/src/lib/registrar.ts index 430478eea..bc7ab61b0 100644 --- a/src/lib/registrar.ts +++ b/src/lib/registrar.ts @@ -90,8 +90,18 @@ export async function getRegistration( getText(resolver, "com.github"), ]); - const [address, avatar, url, id, seedId, seedHost, seedApi, twitter, github] = - meta.filter(isFulfilled).map(r => (r.value ? r.value : undefined)); + const [ + address, + avatar, + url, + id, + seedId, + seedHost, + seedGit, + seedApi, + twitter, + github, + ] = meta.filter(isFulfilled).map(r => (r.value ? r.value : undefined)); const profile: EnsProfile = { name, @@ -109,6 +119,7 @@ export async function getRegistration( profile.seed = new Seed({ host: seedHost, id: seedId, + git: seedGit, addr: seedApi, }); } catch (e: any) {