diff --git a/lib/contracts/code_templates/utils.js.ejs b/lib/contracts/code_templates/utils.js.ejs index 25bb65fd..1fa58f29 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; }