address[] emp = [address1,address2];
amount = total/emp.length;
for(uint256 i=0;i<employees.length;i++)
{
wallet = emp[i];
wallet.transfer(amount);
}
So This is the error I get.
TypeError: Type address is not implicitly convertible to expected address type payable
wallet = emp[i]; ^-----^
Help would be appreciated!