solidity/test/libsolidity/semanticTests/builtinFunctions/keccak256_multiple_arguments.sol
2020-05-07 19:39:15 +02:00

10 lines
306 B
Solidity

contract c {
function foo(uint256 a, uint256 b, uint256 c) public returns (bytes32 d) {
d = keccak256(abi.encodePacked(a, b, c));
}
}
// ====
// compileViaYul: also
// ----
// foo(uint256,uint256,uint256): 0xa, 0xc, 0xd -> 0xbc740a98aae5923e8f04c9aa798c9ee82f69e319997699f2782c40828db9fd81