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:
		
							parent
							
								
									6000a2646c
								
							
						
					
					
						commit
						82e231d0a7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue