@xchainjs/xchain-evm-providers
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -493,3 +493,3 @@ import { TxType, FeeOption } from '@xchainjs/xchain-client'; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const gasAssetBalance = yield this.provider.getBalance(address); | ||
const gasAssetBalance = yield this.provider.getBalance(address.toLowerCase()); | ||
const amount = baseAmount(gasAssetBalance.toString(), this.nativeAssetDecimals); | ||
@@ -510,4 +510,4 @@ return { | ||
}; | ||
const contract = new ethers.Contract(contractAddress, erc20ABI, this.provider); | ||
const balance = (yield contract.balanceOf(address)).toString(); | ||
const contract = new ethers.Contract(contractAddress.toLowerCase(), erc20ABI, this.provider); | ||
const balance = (yield contract.balanceOf(address.toLowerCase())).toString(); | ||
const decimals = (yield contract.decimals()).toString(); | ||
@@ -514,0 +514,0 @@ const amount = baseAmount(balance, Number.parseInt(decimals)); |
@@ -501,3 +501,3 @@ 'use strict'; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const gasAssetBalance = yield this.provider.getBalance(address); | ||
const gasAssetBalance = yield this.provider.getBalance(address.toLowerCase()); | ||
const amount = xchainUtil.baseAmount(gasAssetBalance.toString(), this.nativeAssetDecimals); | ||
@@ -518,4 +518,4 @@ return { | ||
}; | ||
const contract = new ethers.ethers.Contract(contractAddress, erc20ABI, this.provider); | ||
const balance = (yield contract.balanceOf(address)).toString(); | ||
const contract = new ethers.ethers.Contract(contractAddress.toLowerCase(), erc20ABI, this.provider); | ||
const balance = (yield contract.balanceOf(address.toLowerCase())).toString(); | ||
const decimals = (yield contract.decimals()).toString(); | ||
@@ -522,0 +522,0 @@ const amount = xchainUtil.baseAmount(balance, Number.parseInt(decimals)); |
{ | ||
"name": "@xchainjs/xchain-evm-providers", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80154