1

I wrote likeaddress[] payable memory thisAddress in function argument but compiler not passing it

2

Look at my test code and it might help you:

pragma solidity ^0.5.8;

contract Test {
    function multipleTransfer(address payable[] memory _addr, uint256 _amount) public {
        uint256 len = _addr.length;
        for (uint256 i = 0; i < len; i+=1) {
            _addr[0].transfer(_amount);
        }
    }
}

In your case your method parameter will look like address payable[] memory thisAddress.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.