hel 1 year ago
parent
commit
f54fc7aa5e
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/BaseClient.ts

+ 0 - 4
src/BaseClient.ts

@@ -113,14 +113,12 @@ export abstract class BaseClient {
 
 
   async checkBalance() {
   async checkBalance() {
     const balances = await this.lcd.bank.balance(this.key.accAddress)
     const balances = await this.lcd.bank.balance(this.key.accAddress)
-    console.log(JSON.stringify(balances))
     return balances[0].toArray()
     return balances[0].toArray()
   }
   }
 
 
   async funded() {
   async funded() {
     const tokens = await this.checkBalance()
     const tokens = await this.checkBalance()
     const uinit = tokens.filter(token => token.denom === 'uinit')[0]
     const uinit = tokens.filter(token => token.denom === 'uinit')[0]
-    console.log(uinit.amount)
     return Number(uinit.amount) > 0
     return Number(uinit.amount) > 0
   }
   }
 
 
@@ -175,7 +173,6 @@ export abstract class BaseClient {
   }
   }
   async getEthAmount() {
   async getEthAmount() {
     const tokens = await this.checkBalance()
     const tokens = await this.checkBalance()
-    console.log(tokens)
     try {
     try {
       const usdc = tokens.filter(token => token.denom === 'ueth')[0]
       const usdc = tokens.filter(token => token.denom === 'ueth')[0]
       return usdc.amount
       return usdc.amount
@@ -267,7 +264,6 @@ export abstract class BaseClient {
       feeDenoms: ['uinit'],
       feeDenoms: ['uinit'],
     })
     })
     const broadcast = await this.lcd.tx.broadcast(signed)
     const broadcast = await this.lcd.tx.broadcast(signed)
-    console.log(broadcast)
   }
   }
   async bridge2Ai(amount: number) {
   async bridge2Ai(amount: number) {
     const size = bcs
     const size = bcs