diff options
author | chriseth <chris@ethereum.org> | 2018-02-22 00:23:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 00:23:41 +0800 |
commit | 98324d6c89a87cbdc3154e3059c69a292d6ffe41 (patch) | |
tree | a9c5f94aeb94850d34e3c64742ab44d644d4d420 /test/libsolidity | |
parent | 7cec049285b738c08b173a14b044c540539af123 (diff) | |
parent | 89a8f4096c6f1cc1025d4026ebfc7b2674330458 (diff) | |
download | dexon-solidity-98324d6c89a87cbdc3154e3059c69a292d6ffe41.tar.gz dexon-solidity-98324d6c89a87cbdc3154e3059c69a292d6ffe41.tar.zst dexon-solidity-98324d6c89a87cbdc3154e3059c69a292d6ffe41.zip |
Merge pull request #3555 from ethereum/libraryTestCallInput
Provide proper input for test call.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index 4d20f4f5..d2528a67 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -3565,8 +3565,8 @@ BOOST_AUTO_TEST_CASE(library_call_protection) } )"; compileAndRun(sourceCode, 0, "Lib"); - ABI_CHECK(callContractFunction("np(Lib.S storage)"), encodeArgs()); - ABI_CHECK(callContractFunction("v(Lib.S storage)"), encodeArgs(u160(m_sender))); + ABI_CHECK(callContractFunction("np(Lib.S storage)", 0), encodeArgs()); + ABI_CHECK(callContractFunction("v(Lib.S storage)", 0), encodeArgs(u160(m_sender))); ABI_CHECK(callContractFunction("pu()"), encodeArgs(2)); compileAndRun(sourceCode, 0, "Test", bytes(), map<string, Address>{{"Lib", m_contractAddress}}); ABI_CHECK(callContractFunction("s()"), encodeArgs(0)); |