I have two accounts on my geth node . The geth node is syncing with the Ropsten testnet . I executed the following commands
The result was true
After this I tried to sign data by using the following :-
web3.eth.sign("Hello world", eth.accounts).then(console.log);
But can see an error message "invalid address"
What could be causing this error ? Any help appreciated.