Skip to content

Commit 76fa2cf

Browse files
committed
v2r1 gas opt 1537 gas -> 1511 gas
1 parent a99d0ae commit 76fa2cf

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ print:
99
@echo '"code.fif" include 2 boc+>B B>boc ."code hash:" cr hashu X. cr' | fift | grep -v 'ok'
1010

1111
test:
12-
fift pw-test.fif
12+
fift pw-test.fif

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
## ton-preprocessed-wallet-v2
1+
## ton-preprocessed-wallet-v2r1
22

33
**code boc**
44

55
```text
6-
B5EE9C7241010101003D000076FF00DDD40120F90001D0D33FD30FD74CED44D0D3FFD70B0F20A4830FA90822C8CBFFCB0FC9ED5444301046BAF2A1F823BEF2A2F910F2A3F800ED552E766412
6+
B5EE9C7241010101003C000074FF00DDD40120F90001D0D33FD30FD74CED44D0D3FFD70B0F20A4A9380F22C8CBFFCB0FC9ED5444301046BAF2A1F823BEF2A2F910F2A3F800ED55D91C357F
77
```
88

99
**code hash**
1010

1111
```text
12-
45EBBCE9B5D235886CB6BFE1C3AD93B708DE058244892365C9EE0DFE439CB7B5
12+
49B91C4133CAFFC163CF36B87572A73EC918C251FD7CE4F424D699F0CC5D6781
1313
```
1414

1515
**TL-B schemes**

debot/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
**code boc:**
1818
```text
19-
B5EE9C72410222010001E2000114FF00F4A413F4BCF2C80B0102016202030202CC040502012018190201200607020120121302012008090201200C0D0001480201200A0B00291C00E4A00624A00438B232C15633C5807E80B2DA2000151E3232C0C073C59C3E80A00201200E0F0201201011003B083408B3CC4875D26821026F258C1FD6328033261C0C80B2800073C5B8A00043081BACE61FD400F280163C01254C1C16328038885BACE4C07C01251C0CB28038B26000211C1C1C323280328004FD003D0032803260001B208403B0F21B7232C7C4B2C1F3200201201415014BD2821F80544023878058A7803107C80093A646581096503E5FFE4E8780181491836EF897802C200011502C8CB3FCB0FCCC980201201617000D321633C5B33260000F007232FFF2C3F2600009BC761F80640201201A1B001FB821605C8CBFF14CBFFC9D04134F00C80201201C1D0201201E1F0011B6F75A1A7FFAE161F00117B2DEA2005C3C02FC01BE4020200113B04AF6CF3C02483E4020210076FF00DDD40120F90001D0D33FD30FD74CED44D0D3FFD70B0F20A4830FA90822C8CBFFCB0FC9ED5444301046BAF2A1F823BEF2A2F910F2A3F800ED55006CC8C9216F8870935301B98E2553306F816F27506574C8CB0212CA07CBFFC9D05502F0025AF005F00703C8CC13CF13C902A4E810235F0373100FB0
19+
B5EE9C72410222010001E1000114FF00F4A413F4BCF2C80B0102016202030202CC040502012018190201200607020120121302012008090201200C0D0001480201200A0B00291C00E4A00624A00438B232C15633C5807E80B2DA2000151E3232C0C073C59C3E80A00201200E0F0201201011003B083408B3CC4875D26821026F258C1FD6328033261C0C80B2800073C5B8A00043081BACE61FD400F280163C01254C1C16328038885BACE4C07C01251C0CB28038B26000211C1C1C323280328004FD003D0032803260001B208403B0F21B7232C7C4B2C1F3200201201415014BD2821F80544023878058A7803107C80093A646581096503E5FFE4E8780181491836EF897802C200011502C8CB3FCB0FCCC980201201617000D321633C5B33260000F007232FFF2C3F2600009BC761F80640201201A1B001FB821605C8CBFF14CBFFC9D04134F00C80201201C1D0201201E1F0011B6F75A1A7FFAE161F00117B2DEA2005C3C02FC01BE4020200113B04AF6CF3C02483E4020210074FF00DDD40120F90001D0D33FD30FD74CED44D0D3FFD70B0F20A4A9380F22C8CBFFCB0FC9ED5444301046BAF2A1F823BEF2A2F910F2A3F800ED55006CC8C9216F8870935301B98E2553306F816F27506574C8CB0212CA07CBFFC9D05502F0025AF005F00703C8CC13CF13C902A4E810235F03CC12BAAA
2020
```
2121

2222
**code hash:**
2323
```text
24-
38470C0FC1CDA6CD552D0CE05FA330B30243B64933170A161A6880A85DA21A8B
24+
96B83C3DE293BAAC50D795CB0049A9C304E3B1F53A29012F0E45117ACCDB68BF
2525
```

debot/main.fc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ forall X -> (X) idxvar_t(tuple, int) asm "INDEXVAR";
3232
forall M, E, O, W, C, A, T -> ( M, E, O, W, C, A, T )
3333
untuple7([ M, E, O, W, C, A, T ] t) asm "7 UNTUPLE";
3434

35-
cell wallet_code() asm "124 word ../code.fif| include PUSHREF";
35+
cell wallet_code() asm "124 word ../pw-code.fif| include PUSHREF";
3636

3737
slice utils::build_addrstd(int wc, int address) inline {
3838
builder addr = begin_cell()

pw-code.fif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
SWAP CTOS 64 LDU 16 LDU PLDREF // sign hash valid_until msg_seqno actions
2626
c4 PUSH CTOS // sign hash valid_until msg_seqno actions c4s
2727
256 LDU 16 PLDU // sign hash valid_until msg_seqno actions key seqno
28-
DUP INC 16 PUSHPOW2 MOD s2 PUSH // sign hash valid_until msg_seqno actions key seqno new_seqno key
28+
DUP INC 16 MODPOW2# s2 PUSH // sign hash valid_until msg_seqno actions key seqno new_seqno key
2929
NEWC 256 STU 16 STU ENDC c4 POP // sign hash valid_until msg_seqno actions key seqno
3030
s4 s3 s0 XCHG3 s4 s6 XCHG // actions hash sign key valid_until msg_seqno seqno
3131
EQUAL 33 THROWIFNOT // actions hash sign key valid_until

pw-test.fif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ balance null pair // balance_remaining
5555
priv-key <b "t" $, b> 0 60 build-msg =: body
5656
@' vm-flags @' storage @' body balance run-ext-msg
5757

58-
1537 = not abort"error gas usage"
58+
1519 = not abort"error gas usage"
5959
hashu <b "t" $, b> hashu = not abort"invalid c5"
6060
hashu 1 pub-key build-storage hashu = not abort"invalid c4"
6161
0= not abort"unexpected exit code (expected - 0)"

0 commit comments

Comments
 (0)