Update to latest 'caip' package

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2021-10-12 18:38:33 +02:00
parent 316dfc1cb1
commit 0c2aecde72
4 changed files with 36 additions and 8 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { AccountID } from 'caip';
import { AccountId } from 'caip';
import type { EnsProfile } from "@app/base/registrations/registrar";
import type { BasicProfile } from "@ceramicstudio/idx-constants";
import {
@@ -90,7 +90,7 @@ export class Profile {
const addr = this.profile?.ens?.anchorsAccount;
if (addr) {
const id = AccountID.parse(addr);
const id = new AccountId(addr);
// Ethereum address.
if (typeof id.chainId === "object" && id.chainId.namespace === "eip155") {