Replace abi.encodeWithSelector & abi.encodeWithSignature with abi.encodeCall (#4293)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
committed by
GitHub
parent
85696d80ad
commit
4fd2f8be33
@ -12,7 +12,7 @@ contract MulticallTest {
|
||||
) external {
|
||||
bytes[] memory calls = new bytes[](recipients.length);
|
||||
for (uint256 i = 0; i < recipients.length; i++) {
|
||||
calls[i] = abi.encodeWithSignature("transfer(address,uint256)", recipients[i], amounts[i]);
|
||||
calls[i] = abi.encodeCall(multicallToken.transfer, (recipients[i], amounts[i]));
|
||||
}
|
||||
|
||||
bytes[] memory results = multicallToken.multicall(calls);
|
||||
|
||||
Reference in New Issue
Block a user