mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
Remove deprecated anchoring functionality
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
+1
-4
@@ -16,7 +16,6 @@ import { getAddress, getResolver } from "@app/base/registrations/registrar";
|
||||
import {
|
||||
getAvatar,
|
||||
getSeed,
|
||||
getAnchorsAccount,
|
||||
getRegistration,
|
||||
} from "@app/base/registrations/registrar";
|
||||
import { ProfileType } from "@app/profile";
|
||||
@@ -493,13 +492,12 @@ export async function resolveEnsProfile(
|
||||
|
||||
if (profileType === ProfileType.Project) {
|
||||
promises.push(getSeed(name, config, resolver));
|
||||
promises.push(getAnchorsAccount(name, config, resolver));
|
||||
} else if (profileType === ProfileType.Minimal) {
|
||||
promises.push(Promise.resolve(null));
|
||||
}
|
||||
|
||||
const project = await Promise.allSettled(promises);
|
||||
const [avatar, address, seed, anchorsAccount] =
|
||||
const [avatar, address, seed] =
|
||||
// Just checking for r.value equal null and casting to undefined,
|
||||
// since resolver functions return null.
|
||||
project.filter(isFulfilled).map(r => (r.value ? r.value : null));
|
||||
@@ -509,7 +507,6 @@ export async function resolveEnsProfile(
|
||||
avatar,
|
||||
address,
|
||||
seed,
|
||||
anchorsAccount,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user