1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 11:12:16 +00:00
This commit is contained in:
Marat 2025-01-27 08:20:20 +01:00 committed by GitHub
parent 7d9ef6e0bf
commit 99b78f78d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -115,7 +115,7 @@ td::Result<GetMethodParams> decode_get_method_params(const char* json) {
return td::Status::Error("EC must be of type Object"); return td::Status::Error("EC must be of type Object");
} }
td::StringBuilder ec_builder; td::StringBuilder ec_builder;
auto ec_obj = ec_field.get_object(); auto& ec_obj = ec_field.get_object();
bool is_first = true; bool is_first = true;
for (auto &field_value : ec_obj) { for (auto &field_value : ec_obj) {
auto currency_id = field_value.first; auto currency_id = field_value.first;

View file

@ -17,6 +17,7 @@ _emulator_config_destroy
_tvm_emulator_create _tvm_emulator_create
_tvm_emulator_set_libraries _tvm_emulator_set_libraries
_tvm_emulator_set_c7 _tvm_emulator_set_c7
_tvm_emulator_set_extra_currencies
_tvm_emulator_set_config_object _tvm_emulator_set_config_object
_tvm_emulator_set_prev_blocks_info _tvm_emulator_set_prev_blocks_info
_tvm_emulator_set_gas_limit _tvm_emulator_set_gas_limit

View file

@ -445,7 +445,7 @@ TEST(Emulator, tvm_emulator_extra_currencies) {
auto it = dict.begin(); auto it = dict.begin();
std::map<uint32_t, td::RefInt256> ec_balance; std::map<uint32_t, td::RefInt256> ec_balance;
while (!it.eof()) { 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_cs = it.cur_value();
auto value = block::tlb::t_VarUInteger_32.as_integer(value_cs); auto value = block::tlb::t_VarUInteger_32.as_integer(value_cs);
ec_balance[id] = value; ec_balance[id] = value;