mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add legacy_tester for existing funC contracts (#588)
* Add legacy_tester for existing funC contracts * Add storage-contracts and pragma options
This commit is contained in:
parent
13b9f460af
commit
6b49d6a382
70 changed files with 14495 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
() 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue