Skip to content

Commit 99b78f7

Browse files
build fix (#1495)
1 parent 7d9ef6e commit 99b78f7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

emulator/emulator-emscripten.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ td::Result<GetMethodParams> decode_get_method_params(const char* json) {
115115
return td::Status::Error("EC must be of type Object");
116116
}
117117
td::StringBuilder ec_builder;
118-
auto ec_obj = ec_field.get_object();
118+
auto& ec_obj = ec_field.get_object();
119119
bool is_first = true;
120120
for (auto &field_value : ec_obj) {
121121
auto currency_id = field_value.first;

emulator/emulator_export_list

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ _emulator_config_destroy
1717
_tvm_emulator_create
1818
_tvm_emulator_set_libraries
1919
_tvm_emulator_set_c7
20+
_tvm_emulator_set_extra_currencies
2021
_tvm_emulator_set_config_object
2122
_tvm_emulator_set_prev_blocks_info
2223
_tvm_emulator_set_gas_limit

emulator/test/emulator-tests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ TEST(Emulator, tvm_emulator_extra_currencies) {
445445
auto it = dict.begin();
446446
std::map<uint32_t, td::RefInt256> ec_balance;
447447
while (!it.eof()) {
448-
auto id = td::BitArray<32>(it.cur_pos()).to_ulong();
448+
auto id = static_cast<uint32_t>(td::BitArray<32>(it.cur_pos()).to_ulong());
449449
auto value_cs = it.cur_value();
450450
auto value = block::tlb::t_VarUInteger_32.as_integer(value_cs);
451451
ec_balance[id] = value;

0 commit comments

Comments
 (0)