Skip to content

Commit

Permalink
Merge pull request #1 from ston-fi/fix-emulator-extern-libraries
Browse files Browse the repository at this point in the history
emulator: set libraries when libs is NOT empty
  • Loading branch information
dbaranovstonfi authored Dec 23, 2024
2 parents 7151ff2 + ffec21c commit 42e0fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator/emulator-extern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 42e0fab

Please sign in to comment.