From 987c7ca04b204dcb6b962ec6bdb60c4579f07f19 Mon Sep 17 00:00:00 2001 From: dbaranovstonfi <136370214+dbaranovstonfi@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:50:18 +0400 Subject: [PATCH] emulator: set libraries when libs is NOT empty (#1449) Co-authored-by: dbaranov34 --- emulator/emulator-extern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/emulator-extern.cpp b/emulator/emulator-extern.cpp index 52c374ed..4e5f17bf 100644 --- a/emulator/emulator-extern.cpp +++ b/emulator/emulator-extern.cpp @@ -615,7 +615,7 @@ const char *tvm_emulator_emulate_run_method(uint32_t len, const char *params_boc emulator->set_vm_verbosity_level(0); emulator->set_gas_limit(gas_limit); emulator->set_c7_raw(c7->fetch(0).as_tuple()); - if (libs.is_empty()) { + if (!libs.is_empty()) { emulator->set_libraries(std::move(libs)); } auto result = emulator->run_get_method(int(method_id), stack);