I am building a token smart contract using truffle and ganache. i was testing the transfer function. Code is in the image below
In my token.sol file i created a function name transfer
function transfer(address _to, uint _value) public {
When i ran the test using the command 'truffle test'
It threw this error "invalid address (arg="", coderType="address", value=[0])"
Please how do i fix this. I think its from the new truffle compiler because i also ran into an error when trying to fetch the accounts in my ganache using the command web3.eth.accounts i learnt it has been depricated.