Socket
Socket
Sign inDemoInstall

@web3modal/core

Package Overview
Dependencies
Maintainers
11
Versions
374
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/core - npm Package Compare versions

Comparing version 4.1.11 to 4.1.12-ethers-status.0

50

dist/esm/src/utils/ConvertApiUtil.js

@@ -13,14 +13,12 @@ import { NetworkController } from '../controllers/NetworkController.js';

});
const tokens = response.tokens.map(token => {
return {
...token,
eip2612: false,
quantity: {
decimals: '0',
numeric: '0'
},
price: 0,
value: 0
};
});
const tokens = response.tokens.map(token => ({
...token,
eip2612: false,
quantity: {
decimals: '0',
numeric: '0'
},
price: 0,
value: 0
}));
return tokens;

@@ -64,19 +62,17 @@ },

mapBalancesToConvertTokens(balances) {
return balances.map(token => {
return {
symbol: token.symbol,
name: token.name,
address: token?.address
? token.address
: `${NetworkController.state.caipNetwork?.id}:${ConstantsUtil.NATIVE_TOKEN_ADDRESS}`,
decimals: parseInt(token.quantity.decimals, 10),
logoUri: token.iconUrl,
eip2612: false,
quantity: token.quantity,
price: token.price,
value: token.value
};
});
return balances.map(token => ({
symbol: token.symbol,
name: token.name,
address: token?.address
? token.address
: `${NetworkController.state.caipNetwork?.id}:${ConstantsUtil.NATIVE_TOKEN_ADDRESS}`,
decimals: parseInt(token.quantity.decimals, 10),
logoUri: token.iconUrl,
eip2612: false,
quantity: token.quantity,
price: token.price,
value: token.value
}));
}
};
//# sourceMappingURL=ConvertApiUtil.js.map
{
"name": "@web3modal/core",
"version": "4.1.11",
"version": "4.1.12-ethers-status.0",
"type": "module",

@@ -20,4 +20,4 @@ "main": "./dist/esm/index.js",

"dependencies": {
"@web3modal/common": "4.1.11",
"@web3modal/wallet": "4.1.11",
"@web3modal/common": "4.1.12-ethers-status.0",
"@web3modal/wallet": "4.1.12-ethers-status.0",
"valtio": "1.11.2"

@@ -24,0 +24,0 @@ },

Sorry, the diff of this file is not supported yet

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