From 8e56e876db4739d3c0421ff04371216a9a8c1987 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Mon, 28 Aug 2023 21:43:57 +0200 Subject: [PATCH] fixed another problem with lambda call --- tests/core_tests/multiassets_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core_tests/multiassets_test.cpp b/tests/core_tests/multiassets_test.cpp index 8471d154..23b68136 100644 --- a/tests/core_tests/multiassets_test.cpp +++ b/tests/core_tests/multiassets_test.cpp @@ -255,7 +255,7 @@ bool multiassets_basic_test::c1(currency::core& c, size_t ev_index, const std::v //------------------- tests that trying to break stuff ------------------- //tests that trying to break stuff - miner_wlt->get_debug_events_dispatcher().SUBSCIRBE_DEBUG_EVENT([&](wde_construct_tx_handle_asset_descriptor_operation& o) + miner_wlt->get_debug_events_dispatcher().SUBSCIRBE_DEBUG_EVENT([&](const wde_construct_tx_handle_asset_descriptor_operation& o) { crypto::signature s = currency::null_sig; o.pado->opt_proof = s; @@ -334,7 +334,7 @@ bool multiassets_basic_test::c1(currency::core& c, size_t ev_index, const std::v // check emmit_asset() with modified 'current_supply' - miner_wlt->get_debug_events_dispatcher().SUBSCIRBE_DEBUG_EVENT([&](wde_construct_tx_handle_asset_descriptor_operation_before_seal& o) + miner_wlt->get_debug_events_dispatcher().SUBSCIRBE_DEBUG_EVENT([&](const wde_construct_tx_handle_asset_descriptor_operation_before_seal& o) { o.pado->descriptor.current_supply += 1000000; }); @@ -351,7 +351,7 @@ bool multiassets_basic_test::c1(currency::core& c, size_t ev_index, const std::v //test burn that burns more than tx has miner_wlt->get_debug_events_dispatcher().UNSUBSCRIBE_DEBUG_EVENT(); - miner_wlt->get_debug_events_dispatcher().SUBSCIRBE_DEBUG_EVENT([&](wde_construct_tx_handle_asset_descriptor_operation_before_seal& o) + miner_wlt->get_debug_events_dispatcher().SUBSCIRBE_DEBUG_EVENT([&](const wde_construct_tx_handle_asset_descriptor_operation_before_seal& o) { o.pado->descriptor.current_supply -= 1000000; });