refactor: remove bypass

This commit is contained in:
Derrick Hammer 2023-10-18 12:53:36 -04:00
parent b261d57f36
commit 6e81110b62
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 10 deletions

View File

@ -24,16 +24,7 @@ export default class IPFSProvider implements ContentProvider {
try { try {
if (ipnsPath(cid)) { if (ipnsPath(cid)) {
const cidHash = cid.replace("/ipns/", ""); const cidHash = cid.replace("/ipns/", "");
// Use sogola.eth as a test, bypass lookup. cid = await this._client.ipns(cidHash);
if (
cidHash ===
"k51qzi5uqu5dhxd50115dn1hfvuwiqwej3dki72uyopetqua71i6lp96pem0a6"
) {
cid = "QmbavvC59N5u93LqPR5Kz74wdUY3FWnDv38SvhTx4oQope";
} else {
cid = await this._client.ipns(cidHash);
}
cid = `/ipfs/${cid}`; cid = `/ipfs/${cid}`;
} }