diff --git a/lib/contracts/contracts.js b/lib/contracts/contracts.js index f075a485f..09cafcc3d 100644 --- a/lib/contracts/contracts.js +++ b/lib/contracts/contracts.js @@ -100,7 +100,7 @@ class ContractsManager { if (parentContract === undefined) { self.logger.error(className + ": couldn't find instanceOf contract " + parentContractName); - let suggestion = utils.proposeAlternative(className, dictionary, [className, parentContractName]); + let suggestion = utils.proposeAlternative(parentContractName, dictionary, [className, parentContractName]); if (suggestion) { self.logger.warn('did you mean "' + suggestion + '"?'); }