mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
Fix tvm_stackEntrySlice in from_tonlib_api
This commit is contained in:
parent
ca167e9282
commit
179415f815
1 changed files with 2 additions and 1 deletions
|
@ -3437,7 +3437,8 @@ td::Result<vm::StackEntry> from_tonlib_api(tonlib_api::tvm_StackEntry& entry) {
|
|||
[&](tonlib_api::tvm_stackEntryUnsupported& cell) { return td::Status::Error("Unsuppored stack entry"); },
|
||||
[&](tonlib_api::tvm_stackEntrySlice& cell) -> td::Result<vm::StackEntry> {
|
||||
TRY_RESULT(res, vm::std_boc_deserialize(cell.slice_->bytes_));
|
||||
return vm::StackEntry{std::move(res)};
|
||||
auto slice = vm::load_cell_slice_ref(std::move(res));
|
||||
return vm::StackEntry{std::move(slice)};
|
||||
},
|
||||
[&](tonlib_api::tvm_stackEntryCell& cell) -> td::Result<vm::StackEntry> {
|
||||
TRY_RESULT(res, vm::std_boc_deserialize(cell.cell_->bytes_));
|
||||
|
|
Loading…
Reference in a new issue