Skip to content

Commit

Permalink
Add tests to reproduce operation_results issue
Browse files Browse the repository at this point in the history
The broadcast_transaction_with_callback API returns an empty operation_results
  • Loading branch information
abitmore committed Nov 5, 2021
1 parent 698d57a commit ce9e480
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tests/network_broadcast_api_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ BOOST_AUTO_TEST_CASE( broadcast_transaction_with_callback_test ) {
auto callback = [&]( const variant& v )
{
++called;
idump((v));
auto callback_obj = v.as<graphene::app::network_broadcast_api::transaction_confirmation>(200);
BOOST_CHECK_EQUAL( callback_obj.trx.operations.size(), callback_obj.trx.operation_results.size() );
};

fc::ecc::private_key cid_key = fc::ecc::private_key::regenerate( fc::digest("key") );
Expand Down

0 comments on commit ce9e480

Please sign in to comment.