Merge pull request #494 from embark-framework/missing_contract_name

add missing variable
This commit is contained in:
Iuri Matias 2018-06-06 15:58:21 -04:00 committed by GitHub
commit b5ac5626cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class Test {
}); });
// If still nothing, assign bogus one, we will redefine it anyway on deploy // If still nothing, assign bogus one, we will redefine it anyway on deploy
if (!contract) { if (!contract) {
console.warn(__('Could not recognize the contract name "%s"')); console.warn(__('Could not recognize the contract name "%s"', contractName));
console.warn(__('If it is an instance of another contract, it will be reassigned on deploy')); console.warn(__('If it is an instance of another contract, it will be reassigned on deploy'));
console.warn(__('Otherwise, you can rename the contract to contain the parent contract in the name eg: Token2 for Token')); console.warn(__('Otherwise, you can rename the contract to contain the parent contract in the name eg: Token2 for Token'));
contract = this.engine.contractsManager.contracts[contractNames[0]]; contract = this.engine.contractsManager.contracts[contractNames[0]];