Skip to content

Commit 1887189

Browse files
committed
fix libs unit test
1 parent ee7ba24 commit 1887189

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/remix-url-resolver/src/resolve.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ export class RemixURLResolver {
126126
const req = `${endpointUrls.ipfsGateway}/${url}`
127127
// If you don't find greeter.sol on ipfs gateway use local
128128
// const req = 'http://localhost:8080/' + url
129-
const response: AxiosResponse = await axios.get(req, { transformResponse: []})
129+
const response: any = await fetch(req)
130+
const data = await response.text()
130131
return { content: response.data, cleanUrl: url.replace('ipfs/', '') }
131132
} catch (e) {
132133
throw e

0 commit comments

Comments
 (0)