mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	* Add legacy_tester for existing funC contracts * Add storage-contracts and pragma options
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			420 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			420 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| () send_grams(slice address, int amount) impure {
 | |
|   cell msg = begin_cell()
 | |
|     .store_uint (0x18, 6) ;; bounce
 | |
|     .store_slice(address) ;; 267 bit address
 | |
|     .store_grams(amount)
 | |
|     .store_uint(0, 107) ;; 106 zeroes +  0 as an indicator that there is no cell with the data
 | |
|     .end_cell(); 
 | |
|   send_raw_message(msg, 3); ;; mode, 2 for ignoring errors, 1 for sender pays fees, 64 for returning inbound message value
 | |
| }
 |