From d333514fe5f9637a07cfda91e75886cf44c300eb Mon Sep 17 00:00:00 2001 From: Vitalik Buterin Date: Sun, 10 May 2015 22:02:05 -0400 Subject: Added abi tests --- ABITests/basic_abi_tests.json | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ABITests/basic_abi_tests.json diff --git a/ABITests/basic_abi_tests.json b/ABITests/basic_abi_tests.json new file mode 100644 index 000000000..52f16c01a --- /dev/null +++ b/ABITests/basic_abi_tests.json @@ -0,0 +1,40 @@ +{ + 'GithubWikiTest': { + "args": [ + 291, + [ + 1110, + 1929 + ], + "1234567890", + "Hello, world!" + ], + "result": "00000000000000000000000000000000000000000000000000000000000001230000000000000000000000000000000000000000000000000000000000000080313233343536373839300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000004560000000000000000000000000000000000000000000000000000000000000789000000000000000000000000000000000000000000000000000000000000000d48656c6c6f2c20776f726c642100000000000000000000000000000000000000", + "types": [ + "uint256", + "uint32[]", + "bytes10", + "bytes" + ] + }, + 'SingleInteger': { + "args": [ + 98127491 + ], + "result": "0000000000000000000000000000000000000000000000000000000005d94e83", + "types": [ + "uint256" + ] + }, + 'IntegerAndAddress': { + "args": [ + 324124, + "cd2a3d9f938e13cd947ec05abc7fe734df8dd826" + ], + "result": "000000000000000000000000000000000000000000000000000000000004f21c000000000000000000000000cd2a3d9f938e13cd947ec05abc7fe734df8dd826", + "types": [ + "uint256", + "address" + ] + } +} -- cgit v1.2.3