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

Fix deploy_storage_contract detection

This commit is contained in:
EmelyanenkoK 2023-03-07 21:22:17 +03:00 committed by GitHub
parent 6000a2646c
commit 82e231d0a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,7 +259,7 @@ void StorageProvider::process_transaction(tl_object_ptr<tonlib_api::raw_transact
td::Ref<vm::Cell> body = r_body.move_as_ok();
vm::CellSlice cs = vm::load_cell_slice(body);
if (cs.size() >= 32) {
long long op_code = cs.prefetch_long(32);
long long op_code = cs.prefetch_ulong(32);
// const op::offer_storage_contract = 0x107c49ef; -- old versions
// const op::deploy_storage_contract = 0xe4748df1; -- new versions
if((op_code == 0x107c49ef) || (op_code == 0xe4748df1)) {