Code has been added to clipboard!
Solidity Functions for Better Encoding
Example
bytes memory payload = abi.encodeWithSignature("register(string)", "MyName");
(bool success, bytes memory returnData) = address(nameReg).call(payload);
require(success);