@web3modal/core
Advanced tools
Comparing version 4.1.11 to 4.1.12-ethers-status.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
351390
5534
1
+ Added@web3modal/common@4.1.12-ethers-status.0(transitive)
+ Added@web3modal/polyfills@4.1.12-ethers-status.0(transitive)
+ Added@web3modal/wallet@4.1.12-ethers-status.0(transitive)
- Removed@web3modal/common@4.1.11(transitive)
- Removed@web3modal/polyfills@4.1.11(transitive)
- Removed@web3modal/wallet@4.1.11(transitive)