From ffec21c6f0bf1e8af8b4a3b20659b9372ca30464 Mon Sep 17 00:00:00 2001 From: dbaranov34 Date: Mon, 23 Dec 2024 20:24:54 +0400 Subject: [PATCH] emulator: set libraries when libs is NOT empty --- 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 52c374edb..4e5f17bf7 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);