mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated tonlib + fixes in vm
This commit is contained in:
parent
28735ddc9e
commit
efd47af432
42 changed files with 750 additions and 307 deletions
|
@ -14,7 +14,7 @@
|
|||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Copyright 2017-2019 Telegram Systems LLP
|
||||
Copyright 2017-2020 Telegram Systems LLP
|
||||
*/
|
||||
#include "external-message.hpp"
|
||||
#include "vm/boc.h"
|
||||
|
@ -48,6 +48,9 @@ td::Result<Ref<ExtMessageQ>> ExtMessageQ::create_ext_message(td::BufferSlice dat
|
|||
if (ext_msg->get_level() != 0) {
|
||||
return td::Status::Error("external message must have zero level");
|
||||
}
|
||||
if (ext_msg->get_depth() >= max_ext_msg_depth) {
|
||||
return td::Status::Error("external message is too deep");
|
||||
}
|
||||
vm::CellSlice cs{vm::NoVmOrd{}, ext_msg};
|
||||
if (cs.prefetch_ulong(2) != 2) { // ext_in_msg_info$10
|
||||
return td::Status::Error("external message must begin with ext_in_msg_info$10");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue