1 2 3 4 5 6 7 8 9 10 11 12
process.stdout.write("TEST_newAccount "); var onResult = {}; web3.personal.newAccount("123", function(err,res){ onResult(err,res); }) onResult = function (err,res) { if (res.length == 42) console.log("OK"); else console.log("FAILED"); callback(err, res); }