Skip to content

Commit 33385cf

Browse files
authored
Merge pull request #1958 from ethereum/fix_debug_live_tx
Fix debugging live transactions
2 parents 35aff62 + d105124 commit 33385cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/debugger/src/app/debugger-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const DebuggerApiMixin = (Base) => class extends Base {
8383
const target = (address && remixDebug.traceHelper.isContractCreation(address)) ? receipt.contractAddress : address
8484
const targetAddress = target || receipt.contractAddress || receipt.to
8585
const codeAtAddress = await this._web3.eth.getCode(targetAddress)
86-
const output = await this.call('fetchAndCompile', 'resolve', targetAddress, codeAtAddress, 'browser/.debug')
86+
const output = await this.call('fetchAndCompile', 'resolve', targetAddress, codeAtAddress, '.debug')
8787
if (output) {
8888
return new CompilerAbstract(output.languageversion, output.data, output.source)
8989
}

libs/remix-core-plugin/src/lib/compiler-content-imports.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export class CompilerImports extends Plugin {
3535

3636
isExternalUrl (url) {
3737
const handlers = this.urlResolver.getHandlers()
38-
return handlers.some(handler => handler.match(url))
38+
// we filter out "npm" because this will be recognized as internal url although it's not the case.
39+
return handlers.filter((handler) => handler.type !== 'npm').some(handler => handler.match(url))
3940
}
4041

4142
/**

0 commit comments

Comments
 (0)