mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 11:12:16 +00:00
build fix (#1495)
This commit is contained in:
parent
7d9ef6e0bf
commit
99b78f78d7
3 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue