Skip to content

Commit 22239d1

Browse files
Update
1 parent f9f5fe6 commit 22239d1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

javascript/engine-js/src/repo/sources/RegistryScriptURI.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import {ResolveResult, SourceInterface} from "./SourceInterface";
22
import {TokenScriptEngine} from "../../Engine";
3-
import * as fs from 'fs/promises';
4-
5-
const loadFile = async (filePath: string): Promise<string> => {
6-
return fs.readFile(filePath, 'utf-8');
7-
};
83

94
/**
105
* The ScriptURI source implement ethereum EIP-5169
@@ -40,12 +35,12 @@ export class RegistryScriptURI implements SourceInterface {
4035
//initially pick first, but TODO: give user options
4136
let uri = this.context.processIpfsUrl(uris[0]);
4237

43-
if (uri.includes("QmUY21P7eKY2p4NpU65Ma9gWq3UhLC3aYBDNAePEXzwgBe")) {
38+
/*if (uri.includes("QmUY21P7eKY2p4NpU65Ma9gWq3UhLC3aYBDNAePEXzwgBe")) {
4439
return {
4540
xml: await loadFile('./ts.xml'),
4641
sourceUrl: uri
4742
}
48-
}
43+
}*/
4944

5045
let response = await fetch(uri, {
5146
cache: "no-store"

0 commit comments

Comments
 (0)