Skip to content

Commit

Permalink
Fix CGT token (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan-chen authored Oct 6, 2022
1 parent 0a8cc37 commit ba15360
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/boba/gateway/src/services/networkService.js
Original file line number Diff line number Diff line change
Expand Up @@ -2843,8 +2843,20 @@ class NetworkService {
//getting eth balance
//console.log("Getting balance for:", tokenAddress)
tokenBalance = await this.L1_TEST_Contract.attach(tokenAddress).connect(this.L1Provider).balanceOf(allAddresses.L1LPAddress)
tokenSymbol = await this.L1_TEST_Contract.attach(tokenAddress).connect(this.L1Provider).symbol()
tokenName = await this.L1_TEST_Contract.attach(tokenAddress).connect(this.L1Provider).name()
try {
tokenSymbol = await this.L1_TEST_Contract.attach(tokenAddress).connect(this.L1Provider).symbol()
} catch (error) {
if (tokenAddress === '0xf56b164efd3cfc02ba739b719b6526a6fa1ca32a') {
tokenSymbol = 'CGT'
}
}
try {
tokenName = await this.L1_TEST_Contract.attach(tokenAddress).connect(this.L1Provider).name()
} catch (error) {
if (tokenAddress === '0xf56b164efd3cfc02ba739b719b6526a6fa1ca32a') {
tokenName = 'Curio Governance Token'
}
}
decimals = await this.L1_TEST_Contract.attach(tokenAddress).connect(this.L1Provider).decimals()
}

Expand Down

0 comments on commit ba15360

Please sign in to comment.