Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xchainjs/xchain-evm-providers

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchainjs/xchain-evm-providers - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

lib/index.esm.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc