@exodus/ethereum-api 2.26.0 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.1",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@exodus/models": "^8.7.2"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "69dbf7d343fbe5ab22f233d4019fcfcb80816cc4"
|
|
38
38
|
}
|
|
@@ -116,7 +116,7 @@ async function tryToDecodeApprovalTransaction(transaction) {
|
|
|
116
116
|
const [grantedTo, balance] = decodedInput.values
|
|
117
117
|
|
|
118
118
|
const symbol =
|
|
119
|
-
(await getAssetSymbolFromContract(transaction.to))
|
|
119
|
+
(await getAssetSymbolFromContract(transaction.to))?.toUpperCase() || 'Unknown Token'
|
|
120
120
|
|
|
121
121
|
return [{ grantedTo, balance, symbol, decimals: undefined }] // ToDo: Return 'decimals' in the future once we support changing the approval amount.
|
|
122
122
|
} catch (e) {
|