mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Automated ABI Json tests.
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
contract test {
|
||||
function foo(uint a, uint b) public returns (uint d) { return a + b; }
|
||||
function boo(uint32 a) public view returns(uint b) { return a * 4; }
|
||||
}
|
||||
// ----
|
||||
// :test
|
||||
// [
|
||||
// {
|
||||
// "constant": false,
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
// ],
|
||||
// "name": "foo",
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "name": "d",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
// ],
|
||||
// "payable": false,
|
||||
// "stateMutability": "nonpayable",
|
||||
// "type": "function"
|
||||
// },
|
||||
// {
|
||||
// "constant": true,
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "name": "a",
|
||||
// "type": "uint32"
|
||||
// }
|
||||
// ],
|
||||
// "name": "boo",
|
||||
// "outputs":
|
||||
// [
|
||||
// {
|
||||
// "name": "b",
|
||||
// "type": "uint256"
|
||||
// }
|
||||
// ],
|
||||
// "payable": false,
|
||||
// "stateMutability": "view",
|
||||
// "type": "function"
|
||||
// }
|
||||
// ]
|
||||
Reference in New Issue
Block a user