Fix import IPFS files

pull/1956/head
yann300 3 years ago committed by GitHub
parent d456c2dca3
commit a2cb435398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libs/remix-url-resolver/src/resolve.ts

@ -117,7 +117,7 @@ export class RemixURLResolver {
// If you don't find greeter.sol on ipfs gateway use local
// const req = 'http://localhost:8080/' + url
const response: AxiosResponse = await axios.get(req)
return { content: response.data, cleanUrl: url }
return { content: response.data, cleanUrl: url.replace('ipfs/', '') }
} catch (e) {
throw e
}

Loading…
Cancel
Save