From 693858df155255cd98c46118311fbc7a2afe9fb4 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 23 Feb 2018 19:38:29 +0100 Subject: [PATCH] fix returndatacopy expectations --- test/libsolidity/ABIDecoderTests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/libsolidity/ABIDecoderTests.cpp b/test/libsolidity/ABIDecoderTests.cpp index 26654cae8c2c..beb7b5af68ef 100644 --- a/test/libsolidity/ABIDecoderTests.cpp +++ b/test/libsolidity/ABIDecoderTests.cpp @@ -864,10 +864,9 @@ BOOST_AUTO_TEST_CASE(return_dynamic_types_cross_call_out_of_range) else { ABI_CHECK(callContractFunction("f(uint256)", 0x60), encodeArgs()); - // This checks that bytes is correctly padded. We need returndatasize for that. - ABI_CHECK(callContractFunction("f(uint256)", 0x7f), encodeArgs()); + ABI_CHECK(callContractFunction("f(uint256)", 0x61), encodeArgs(true)); } - ABI_CHECK(callContractFunction("f(uint256)", 0x180), encodeArgs(true)); + ABI_CHECK(callContractFunction("f(uint256)", 0x80), encodeArgs(true)); ) }