Skip to content

Commit e5c6921

Browse files
yann300Aniket-Engg
authored andcommitted
fix using compareByteCode
1 parent 0b5f291 commit e5c6921

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

apps/remix-ide/src/app/tabs/debugger-tab.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ export class DebuggerTab extends DebuggerApiMixin(ViewPlugin) {
4545
this.call('notification', 'toast', notFoundToastMsg(contractAddress))
4646
})
4747

48-
this.on('fetchAndCompile', 'usingLocalCompilation', (contractAddress) => {
49-
this.call('notification', 'toast', localCompilationToastMsg())
50-
})
51-
5248
this.on('fetchAndCompile', 'sourceVerificationNotAvailable', () => {
5349
this.call('notification', 'toast', sourceVerificationNotAvailableToastMsg())
5450
})

libs/remix-core-plugin/src/lib/compiler-fetch-and-compile.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,11 @@ export class FetchAndCompile extends Plugin {
100100
if (compilation) {
101101
let found = false
102102
compilation.visitContracts((contract) => {
103-
found = util.compareByteCode('0x' + contract.object.evm.deployedBytecode.object, codeAtAddress)
103+
found = util.compareByteCode(codeAtAddress, '0x' + contract.object.evm.deployedBytecode.object)
104104
return found
105105
})
106106
if (found) {
107107
await this.call('compilerArtefacts', 'addResolvedContract', contractAddress, compilation)
108-
setTimeout(_ => this.emit('usingLocalCompilation', contractAddress), 0)
109108
return compilation
110109
}
111110
}

0 commit comments

Comments
 (0)