According to some resources, this well known error occur because of versions 0.4.X to 0.5.X change.
Previously I compiled contract with ^0.5.1, to solve this error currently I'm using 0.4.4. But still the error is there.
Error: Member "transfer" not found or not visible after argument-dependent lookup in address fundsWallet.transfer(msg.value);
I have also changed my declaration, from:
address public fundsWallet;
address public payable fundsWallet;
still error is:
Error: Expected identifier, got 'Payable'
How can I fix this issue in version ^0.4.4 as well as ^0.5.1?