Skip to content

Commit 70c71de

Browse files
committed
adjust raw compile
1 parent 0d44e51 commit 70c71de

File tree

6 files changed

+28
-14
lines changed

6 files changed

+28
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Thus this jetton represents a [standard TON jetton smart contracts](https://gith
1515

1616
- Admin of jetton can burn user's jettons.
1717

18-
- Admin of jetton can lock/unlock user's jetton wallet (`set_status`). If the status is not set to zero, then the user's wallet is locked, the user cannot make transfers; Admin can make transfer even if wallet locked.
18+
- Admin of jetton can lock/unlock user's jetton wallet (`set_status`). If the status is not set to zero, then the user's wallet is locked, the user cannot make transfers and burns; Admin can make transfer and burn even if wallet locked.
1919

2020
- Admin of jetton can change jetton-minter code and it's full data.
2121

build/print-hex.fif

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
"TonUtil.fif" include
33
"Asm.fif" include
44

5-
."jetton-minter:" cr
65

76
"jetton-minter.fif" include
8-
2 boc+>B dup Bx. cr
7+
."jetton-minter hash:" cr
8+
dup hashB dup Bx. cr drop
9+
."jetton-minter code:" cr
10+
boc>B dup Bx. cr
911

10-
."jetton-wallet:" cr
1112

1213
"jetton-wallet.fif" include
13-
2 boc+>B dup Bx. cr
14+
."jetton-wallet hash:" cr
15+
dup hashB dup Bx. cr drop
16+
."jetton-wallet code:" cr
17+
boc>B dup Bx. cr
18+

compile.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
func -SPA -o ./build/jetton-wallet.fif contracts/jetton-wallet.fc
2-
func -SPA -o ./build/jetton-minter.fif contracts/jetton-minter.fc
1+
func -PA -o ./build/jetton-wallet.fif contracts/jetton-wallet.fc
2+
func -PA -o ./build/jetton-minter.fif contracts/jetton-minter.fc
33
fift -s build/print-hex.fif

package-lock.json

+9-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
"ts-node": "^10.4.0",
4040
"typescript": "^4.5.4"
4141
},
42+
"overrides": {
43+
"@ton-community/func-js-bin": "0.4.4"
44+
},
4245
"prettier": {
4346
"printWidth": 180
4447
},

sandbox_tests/JettonWallet.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ describe('JettonWallet', () => {
3939
deployer = await blockchain.treasury('deployer');
4040
notDeployer = await blockchain.treasury('notDeployer');
4141
defaultContent = beginCell().endCell();
42+
43+
console.log('jetton minter code hash = ', minter_code.hash().toString('hex'));
44+
console.log('jetton wallet code hash = ', jwallet_code.hash().toString('hex'));
45+
4246
jettonMinter = blockchain.openContract(
4347
JettonMinter.createFromConfig(
4448
{

0 commit comments

Comments
 (0)