diff --git a/emulator/emulator-emscripten.cpp b/emulator/emulator-emscripten.cpp index e5d4e42d..efb14eff 100644 --- a/emulator/emulator-emscripten.cpp +++ b/emulator/emulator-emscripten.cpp @@ -115,7 +115,7 @@ td::Result decode_get_method_params(const char* json) { return td::Status::Error("EC must be of type Object"); } td::StringBuilder ec_builder; - auto ec_obj = ec_field.get_object(); + auto& ec_obj = ec_field.get_object(); bool is_first = true; for (auto &field_value : ec_obj) { auto currency_id = field_value.first; diff --git a/emulator/emulator_export_list b/emulator/emulator_export_list index feb653e2..bd991cd7 100644 --- a/emulator/emulator_export_list +++ b/emulator/emulator_export_list @@ -17,6 +17,7 @@ _emulator_config_destroy _tvm_emulator_create _tvm_emulator_set_libraries _tvm_emulator_set_c7 +_tvm_emulator_set_extra_currencies _tvm_emulator_set_config_object _tvm_emulator_set_prev_blocks_info _tvm_emulator_set_gas_limit diff --git a/emulator/test/emulator-tests.cpp b/emulator/test/emulator-tests.cpp index a0be447f..ae273ddf 100644 --- a/emulator/test/emulator-tests.cpp +++ b/emulator/test/emulator-tests.cpp @@ -445,7 +445,7 @@ TEST(Emulator, tvm_emulator_extra_currencies) { auto it = dict.begin(); std::map ec_balance; while (!it.eof()) { - auto id = td::BitArray<32>(it.cur_pos()).to_ulong(); + auto id = static_cast(td::BitArray<32>(it.cur_pos()).to_ulong()); auto value_cs = it.cur_value(); auto value = block::tlb::t_VarUInteger_32.as_integer(value_cs); ec_balance[id] = value;