1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Fix TonlibClient.cpp

This commit is contained in:
Stanislav-Povolotsky 2025-02-25 20:26:37 +01:00 committed by GitHub
parent 2a68c8610b
commit 9f1cb1815e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -268,7 +268,7 @@ td::Result<td::Ref<vm::Cell>> add_extra_currencies(const td::Ref<vm::Cell> &e1,
block::CurrencyCollection c1{td::zero_refint(), e1};
block::CurrencyCollection c2{td::zero_refint(), e2};
TRY_RESULT_ASSIGN(c1, TRY_VM(td::Result<block::CurrencyCollection>{c1 + c2}));
if (c1.is_valid()) {
if (!c1.is_valid()) {
return td::Status::Error("Failed to add extra currencies");
}
return c1.extra;