diff --git a/issuer.js b/issuer.js index 3cb9f4e..a9f5c66 100644 --- a/issuer.js +++ b/issuer.js @@ -300,12 +300,7 @@ class IssuerJS { tokenAddress, txParams ) - const receipt = await this.provider.getTransactionReceipt(result.hash || '') - if (receipt.status) { - return result - } else { - throw new Error('Something went wrong \n txHash: ' + result.hash || '') - } + return result } } catch (error) { throw error @@ -338,13 +333,7 @@ class IssuerJS { txParams ) - const receipt = await this.provider.getTransactionReceipt(result.hash || '') - - if (receipt.status) { - return result - } else { - throw new Error('Something went wrong \n txHash: ' + result.hash || '') - } + return result } } catch (error) { throw error diff --git a/tomo-cli b/tomo-cli index 2c538fa..5c6e223 100755 --- a/tomo-cli +++ b/tomo-cli @@ -553,11 +553,10 @@ function run() { .command('issuer-apply-tomox') .description('deposit token pooling fee') .requiredOption('-t, --tokenAddress ', 'Token address') - .requiredOption('-a, --amount ', 'Deposit amount') .action(async (params) => { await issuerjs.applyTomoX({ tokenAddress: params.tokenAddress, - amount: params.amount + amount: 1000 }).then(data => { console.log(data) }).catch(e => console.log(e.message ? e.message : e))