diff --git a/CLI/commands/ST20Generator.js b/CLI/commands/ST20Generator.js index 689b2b27f..e293bf19d 100644 --- a/CLI/commands/ST20Generator.js +++ b/CLI/commands/ST20Generator.js @@ -187,7 +187,7 @@ async function approvePoly(spender, fee) { polyBalance = await polyToken.methods.balanceOf(Issuer.address).call(); let requiredAmount = web3.utils.toWei(fee.toString(), "ether"); if (parseInt(polyBalance) >= parseInt(requiredAmount)) { - let allowance = await polyToken.methods.allowance(spender, Issuer.address).call(); + let allowance = await polyToken.methods.allowance(Issuer.address, spender).call(); if (allowance == web3.utils.toWei(fee.toString(), "ether")) { return true; } else {