Skip to content

Commit 651e81d

Browse files
Merge pull request #9 from toncenter/develop
Fixed wrong account_state for uninited addresses
2 parents a82065a + 6dd9585 commit 651e81d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ton-http-api/src/converters/common.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ inline schemas::v2::AccountState Convert(const tonlib_api::object_ptr<tonlib_api
181181
res.description = val.description_;
182182
result.emplace<schemas::v2::AccountStatePChan>(res);
183183
},
184+
[&](const tonlib_api::uninited_accountState& val) {
185+
schemas::v2::AccountStateUninited res;
186+
res.frozen_hash = types::ton_hash{val.frozen_hash_};
187+
result.emplace<schemas::v2::AccountStateUninited>(res);
188+
},
184189
[&](const auto&) { LOG_ERROR() << "Unsupported account state type: " << value->get_id(); }
185190
)
186191
);

0 commit comments

Comments
 (0)