Skip to content

Commit

Permalink
build fix (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
dungeon-master-666 authored Jan 27, 2025
1 parent 7d9ef6e commit 99b78f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emulator/emulator-emscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ td::Result<GetMethodParams> 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;
Expand Down
1 change: 1 addition & 0 deletions emulator/emulator_export_list
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion emulator/test/emulator-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ TEST(Emulator, tvm_emulator_extra_currencies) {
auto it = dict.begin();
std::map<uint32_t, td::RefInt256> ec_balance;
while (!it.eof()) {
auto id = td::BitArray<32>(it.cur_pos()).to_ulong();
auto id = static_cast<uint32_t>(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;
Expand Down

0 comments on commit 99b78f7

Please sign in to comment.