Skip to content

Commit 5232f5f

Browse files
committed
fix getting compilation result (use checksum address)
1 parent 6bcb0ea commit 5232f5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/remix-core-plugin/src/lib/compiler-artefacts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { Plugin } from '@remixproject/engine'
33
import { util } from '@remix-project/remix-lib'
44
import { CompilerAbstract } from '@remix-project/remix-solidity'
5+
import { toChecksumAddress } from '@ethereumjs/util'
56

67
const profile = {
78
name: 'compilerArtefacts',
@@ -202,7 +203,7 @@ export class CompilerArtefacts extends Plugin {
202203
}
203204

204205
get(key) {
205-
return this.compilersArtefacts[key]
206+
return this.compilersArtefacts[key] || this.compilersArtefacts[toChecksumAddress(key)]
206207
}
207208

208209
async getContractDataFromAddress(address) {

0 commit comments

Comments
 (0)