Skip to content

Commit

Permalink
GH-677 Use unnamed copy
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Feb 7, 2023
1 parent cd3aaf2 commit b1af6cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions unittests/abi_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,8 @@ BOOST_AUTO_TEST_CASE(general)
{ try {

auto abi = eosio_contract_abi(fc::json::from_string(my_abi).as<abi_def>());
auto abi2 = abi;

abi_serializer abis(std::move(abi), abi_serializer::create_yield_function( max_serialization_time ));
abi_serializer abis(abi_def(abi), abi_serializer::create_yield_function( max_serialization_time ));

const char *my_other = R"=====(
{
Expand Down Expand Up @@ -752,7 +751,7 @@ BOOST_AUTO_TEST_CASE(general)
)=====";

auto var = fc::json::from_string(my_other);
verify_byte_round_trip_conversion(abi_serializer{std::move(abi2), abi_serializer::create_yield_function( max_serialization_time )}, "A", var);
verify_byte_round_trip_conversion(abi_serializer{std::move(abi), abi_serializer::create_yield_function( max_serialization_time )}, "A", var);

} FC_LOG_AND_RETHROW() }

Expand Down

0 comments on commit b1af6cf

Please sign in to comment.