solidity/test/libsolidity/ABIJson/multiple_methods_order.sol
2019-09-06 14:42:09 +02:00

52 lines
1.0 KiB
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"
// }
// ]