0-mint-amount').value))) {
                alert('Invalid mint amount.');
                return;
            }

            if ($('#brc20-mint-ticker').value == '' || $('#brc20-mint-ticker').value.length != 4) {
                alert('Invalid ticker length. Must be 4 characters.');
                return;
            }

            mint = JSON.parse(mint);
            mint.tick = $('#brc20-mint-ticker').value;
            mint.amt = $('#brc20-mint-amount').value;

            let repeat = parseInt($('#brc2