Fix import IPFS files

pull/5370/head
yann300 3 years ago committed by GitHub
parent f1c29bc54a
commit 5d46db9e7b
  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