diff --git a/apps/debugger/src/app/debugger-api.ts b/apps/debugger/src/app/debugger-api.ts index 6727988c9a..6163ee766c 100644 --- a/apps/debugger/src/app/debugger-api.ts +++ b/apps/debugger/src/app/debugger-api.ts @@ -83,7 +83,7 @@ export const DebuggerApiMixin = (Base) => class extends Base { const target = (address && remixDebug.traceHelper.isContractCreation(address)) ? receipt.contractAddress : address const targetAddress = target || receipt.contractAddress || receipt.to const codeAtAddress = await this._web3.eth.getCode(targetAddress) - const output = await this.call('fetchAndCompile', 'resolve', targetAddress, codeAtAddress, 'browser/.debug') + const output = await this.call('fetchAndCompile', 'resolve', targetAddress, codeAtAddress, '.debug') if (output) { return new CompilerAbstract(output.languageversion, output.data, output.source) } diff --git a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts b/libs/remix-core-plugin/src/lib/compiler-content-imports.ts index 7eab9205ce..624c756357 100644 --- a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts +++ b/libs/remix-core-plugin/src/lib/compiler-content-imports.ts @@ -35,7 +35,8 @@ export class CompilerImports extends Plugin { isExternalUrl (url) { const handlers = this.urlResolver.getHandlers() - return handlers.some(handler => handler.match(url)) + // we filter out "npm" because this will be recognized as internal url although it's not the case. + return handlers.filter((handler) => handler.type !== 'npm').some(handler => handler.match(url)) } /** diff --git a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx index 5acd50541a..6cb3ed8116 100644 --- a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx +++ b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx @@ -20,7 +20,7 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => { return (
{plugin?.profile.displayName || plugin?.profile.name}
- {plugin?.profile.documentation ? () : ''} + {plugin?.profile.documentation ? () : ''}
) }