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 <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-01-18 20:54:49 +01:00
parent a07518c327
commit 7eff5995c7
+13 -2
View File
@@ -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) {