Skip to content

Commit

Permalink
Syntax error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramCrafter committed Oct 7, 2023
1 parent d455df5 commit 59320ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/multitoken_dex.tact
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ native mulDiv(a: Int, b: Int, c: Int): Int;
native fillZerosCheckLen(jetton_wallets: map<Address, Address>, want_len: Int): map<Address, Int>;

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


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


Expand Down

0 comments on commit 59320ff

Please sign in to comment.