contract test {
uint256 public result;
function add(uint256 a, uint256 b) public returns (uint256) {
result = a + b;
return result;
}
}
contract test1 {
function addValues(address test, uint256 a, uint256 b) public returns (uint256) {
(bool success, bytes memory result) = test.delegatecall(abi.encodeWithSignature("add(uint256,uint256)", a, b));
return abi.decode(result, (uint256));
}
}