diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-12 03:22:08 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-13 18:40:57 +0800 |
commit | 8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a (patch) | |
tree | ba689a2095b46b2ab5f081cee998d09f9b87f7cf /test | |
parent | c70ebfd241cc3dc6d19847d94b11784da1c79cdd (diff) | |
download | dexon-solidity-8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a.tar dexon-solidity-8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a.tar.gz dexon-solidity-8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a.tar.bz2 dexon-solidity-8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a.tar.lz dexon-solidity-8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a.tar.xz dexon-solidity-8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a.tar.zst dexon-solidity-8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a.zip |
Use hashing function in tests
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index 661d184a..1a2abea3 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -10070,9 +10070,9 @@ BOOST_AUTO_TEST_CASE(function_types_sig) } )"; compileAndRun(sourceCode, 0, "C"); - BOOST_CHECK(callContractFunction("f()") == fromHex("0x26121ff0")); - BOOST_CHECK(callContractFunction("g()") == fromHex("0x26121ff0")); - BOOST_CHECK(callContractFunction("h()") == fromHex("0x26121ff0")); + BOOST_CHECK(callContractFunction("f()") == encodeArgs(asString(FixedHash<4>(dev::keccak256("f()")).asBytes()))); + BOOST_CHECK(callContractFunction("g()") == encodeArgs(asString(FixedHash<4>(dev::keccak256("f()")).asBytes()))); + BOOST_CHECK(callContractFunction("h()") == encodeArgs(asString(FixedHash<4>(dev::keccak256("f()")).asBytes()))); } BOOST_AUTO_TEST_SUITE_END() |