diff --git a/lib/contracts/code_templates/utils.js.ejs b/lib/contracts/code_templates/utils.js.ejs index 25bb65fd4..1fa58f29a 100644 --- a/lib/contracts/code_templates/utils.js.ejs +++ b/lib/contracts/code_templates/utils.js.ejs @@ -43,8 +43,10 @@ function __getAccounts(cb) { if (__isNewWeb3_1()) { web3.eth.getAccounts().then(function(accounts) { cb(null, accounts); + return null; }).catch(function(err) { cb(err); + return null; }); return; }