Skip to content

Commit

Permalink
fix limiting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cryshado committed May 2, 2022
1 parent e95e906 commit 52e9e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion func/btn-mint-ico.func
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ _ load_data() inline {

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

cell state_init = jwall_state_init(
to_address, ;; mint to
Expand Down

0 comments on commit 52e9e7a

Please sign in to comment.