Skip to content

Commit 52e9e7a

Browse files
author
cryshado
committed
fix limiting bug
1 parent e95e906 commit 52e9e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/btn-mint-ico.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ _ load_data() inline {
7878

7979
(int {- jetton_amount -} ) mint_tokens(data, cell jwall_code, int supply, int max_supply) impure inline {
8080
(slice to_address, int amount, cell master_msg, int jetton_amount) = data;
81-
throw_if(ext_code::max_supply_limit(), supply + amount > max_supply);
81+
throw_if(ext_code::max_supply_limit(), supply + jetton_amount > max_supply);
8282

8383
cell state_init = jwall_state_init(
8484
to_address, ;; mint to

0 commit comments

Comments
 (0)