solidity/test/libsolidity/ABIJson/multiple_methods_order.sol
2022-11-04 00:25:39 +01:00

48 lines
1002 B
Solidity

// methods are expected to be in alphabetical order
contract test {
function f(uint a) public returns (uint d) { return a * 7; }
function c(uint b) public returns (uint e) { return b * 8; }
}
// ----
// :test
// [
// {
// "inputs": [
// {
// "internalType": "uint256",
// "name": "b",
// "type": "uint256"
// }
// ],
// "name": "c",
// "outputs": [
// {
// "internalType": "uint256",
// "name": "e",
// "type": "uint256"
// }
// ],
// "stateMutability": "nonpayable",
// "type": "function"
// },
// {
// "inputs": [
// {
// "internalType": "uint256",
// "name": "a",
// "type": "uint256"
// }
// ],
// "name": "f",
// "outputs": [
// {
// "internalType": "uint256",
// "name": "d",
// "type": "uint256"
// }
// ],
// "stateMutability": "nonpayable",
// "type": "function"
// }
// ]