solidity/test/libsolidity/semanticTests/literalSuffixes/suffix_in_abi_encode_signature.sol
2023-05-17 16:55:14 +02:00

10 lines
334 B
Solidity

function signatureSuffix(string memory) pure suffix returns (string memory) { return "f()"; }
contract C {
function test() public pure returns (bytes memory) {
return abi.encodeWithSignature("abcd" signatureSuffix);
}
}
// ----
// test() -> 0x20, 4, 0x26121ff000000000000000000000000000000000000000000000000000000000