aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-14 20:13:37 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:19 +0800
commitec31d08775021de0f3279dbeb115b3e688c5997e (patch)
tree32f8d14735ffd15f7fb2c7ca5b8498cc1bab8748 /test/libsolidity/SolidityEndToEndTest.cpp
parenta8e7ed37a10f9dd43bfc57db7733412503c1a24e (diff)
downloaddexon-solidity-ec31d08775021de0f3279dbeb115b3e688c5997e.tar.gz
dexon-solidity-ec31d08775021de0f3279dbeb115b3e688c5997e.tar.zst
dexon-solidity-ec31d08775021de0f3279dbeb115b3e688c5997e.zip
Change encoding to address-funid and add "function" as ABI type.
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index c01d11d2..ed95d687 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -7703,8 +7703,8 @@ BOOST_AUTO_TEST_CASE(receive_external_function_type)
compileAndRun(sourceCode, 0, "C");
BOOST_CHECK(callContractFunction(
- "f(bytes24)",
- FixedHash<4>(dev::keccak256("g()")).asBytes() + m_contractAddress.asBytes() + bytes(32 - 4 - 20, 0)
+ "f(function)",
+ m_contractAddress.asBytes() + FixedHash<4>(dev::keccak256("g()")).asBytes() + bytes(32 - 4 - 20, 0)
) == encodeArgs(u256(7)));
}
@@ -7722,7 +7722,7 @@ BOOST_AUTO_TEST_CASE(return_external_function_type)
compileAndRun(sourceCode, 0, "C");
BOOST_CHECK(
callContractFunction("f()") ==
- FixedHash<4>(dev::keccak256("g()")).asBytes() + m_contractAddress.asBytes() + bytes(32 - 4 - 20, 0)
+ m_contractAddress.asBytes() + FixedHash<4>(dev::keccak256("g()")).asBytes() + bytes(32 - 4 - 20, 0)
);
}