File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
javascript/engine-js/src/repo/sources Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { ResolveResult , SourceInterface } from "./SourceInterface" ;
2
2
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
- } ;
8
3
9
4
/**
10
5
* The ScriptURI source implement ethereum EIP-5169
@@ -40,12 +35,12 @@ export class RegistryScriptURI implements SourceInterface {
40
35
//initially pick first, but TODO: give user options
41
36
let uri = this . context . processIpfsUrl ( uris [ 0 ] ) ;
42
37
43
- if ( uri . includes ( "QmUY21P7eKY2p4NpU65Ma9gWq3UhLC3aYBDNAePEXzwgBe" ) ) {
38
+ /* if (uri.includes("QmUY21P7eKY2p4NpU65Ma9gWq3UhLC3aYBDNAePEXzwgBe")) {
44
39
return {
45
40
xml: await loadFile('./ts.xml'),
46
41
sourceUrl: uri
47
42
}
48
- }
43
+ }*/
49
44
50
45
let response = await fetch ( uri , {
51
46
cache : "no-store"
You can’t perform that action at this time.
0 commit comments