Skip to content

Commit 59320ff

Browse files
Syntax error fix
1 parent d455df5 commit 59320ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/multitoken_dex.tact

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ native mulDiv(a: Int, b: Int, c: Int): Int;
99
native fillZerosCheckLen(jetton_wallets: map<Address, Address>, want_len: Int): map<Address, Int>;
1010

1111
@name(load_msg_addr)
12-
extends mutates native fun loadAddress(self: Slice): Address;
12+
extends mutates native loadAddress(self: Slice): Address;
1313
// SAFETY: doesn't check if address is std-type
1414

1515

@@ -112,6 +112,8 @@ contract MultitokenDex {
112112
self.transferJettonTo(ctx.sender, msg.sender, received,
113113
msg.query_id, "Unknown operation");
114114
}
115+
// SAFETY: we test whether provided address is among listed jetton masters
116+
// it can fail due to invalid key length, but that's hard to achieve and doesn't harm DEX
115117
let otherJettonMaster: Address = swap.loadAddress();
116118

117119

0 commit comments

Comments
 (0)