TypeError at NewAccountMethod.set
Expected behavior
When running this line of code:
web3.eth.personal.newAccount("").then(console.log);
I should get the address of newly created account according to documentation.
Actual behavior / Steps to reproduce the behavior
However, I do get following error message when running the code on different platforms and different node versions (see further below for version details):
Error Logs
`/root/dev/bot/node_modules/web3/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411 throw new TypeError("The latest parameter should be a function otherwise it can't be used as callback"); ^
TypeError: The latest parameter should be a function otherwise it can't be used as callback
at NewAccountMethod.set (/root/dev/bot/node_modules/web3/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411:17)
at Proxy.anonymousFunction (/root/dev/bot/node_modules/web3/node_modules/web3-core-method/dist/web3-core-method.cjs.js:224:28)
at Object.
Versions
NPM 6.5.0, Node v7.10.1 / v8.15.0 / v11.8.0, Web3-1.0.0-beta.41, Debian (Stretch) / Arch, 4.9.0-8-amd64 / 4.20.3-arch1-1-ARCH
same issue.
Similiar error when running web3.eth.personal.sendTransaction
`/root/dev/bot/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411 throw new TypeError("The latest parameter should be a function otherwise it can't be used as callback"); ^
TypeError: The latest parameter should be a function otherwise it can't be used as callback at SendTransactionMethod.set (/root/dev/bot/node_modules/web3-core-method/dist/web3-core-method.cjs.js:411:17) at Proxy.anonymousFunction (/root/dev/bot/node_modules/web3-core-method/dist/web3-core-method.cjs.js:224:28) ...`
Thanks for submitting this issue @cypheron will fix and release it on Monday.
#theSameIssue. o-O