Skip to content

Commit

Permalink
Don't deserialize continuations in LS runSmcMethod (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese authored Sep 4, 2024
1 parent b2b79fe commit e35b34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/impl/liteserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ void LiteQuery::perform_runSmcMethod(BlockIdExt blkid, WorkchainId workchain, St
vm::FakeVmStateLimits fstate(1000); // limit recursive (de)serialization calls
vm::VmStateInterface::Guard guard(&fstate);
auto cs = vm::load_cell_slice(res.move_as_ok());
if (!(vm::Stack::deserialize_to(cs, stack_, 0) && cs.empty_ext())) {
if (!(vm::Stack::deserialize_to(cs, stack_, 2 /* no continuations */) && cs.empty_ext())) {
fatal_error("parameter list boc cannot be deserialized as a VmStack");
return;
}
Expand Down

0 comments on commit e35b34d

Please sign in to comment.