diff --git a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js index 363f06f748..0cd7dee4ca 100644 --- a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js +++ b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js @@ -1,3 +1,4 @@ +const ethutil = require('ethereumjs-util') import * as packageJson from '../../../package.json' import { Plugin } from '@remixproject/engine' import { urlFromVersion } from './compiler-utils' @@ -31,6 +32,7 @@ export default class FetchAndCompile extends Plugin { * @return {CompilerAbstract} - compilation data targeting the given @arg contractAddress */ async resolve (contractAddress, targetPath, web3) { + contractAddress = ethutil.toChecksumAddress(contractAddress) const compilersartefacts = globalRegistry.get('compilersartefacts').api const localCompilation = () => compilersartefacts.get('__last') ? compilersartefacts.get('__last') : null