@exodus/solana-api 2.5.17 → 2.5.18
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 +3 -3
- package/src/tx-send.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.18",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@exodus/models": "^10.1.0",
|
|
24
24
|
"@exodus/nfts-core": "^0.5.0",
|
|
25
25
|
"@exodus/simple-retry": "^0.0.6",
|
|
26
|
-
"@exodus/solana-lib": "^1.6.
|
|
26
|
+
"@exodus/solana-lib": "^1.6.10",
|
|
27
27
|
"@exodus/solana-meta": "^1.0.3",
|
|
28
28
|
"bn.js": "^4.11.0",
|
|
29
29
|
"debug": "^4.1.1",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@exodus/assets-testing": "file:../../../__testing__"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1210a44d1b6a8fc0375589f7e2439aa3fd0f6b01"
|
|
38
38
|
}
|
package/src/tx-send.js
CHANGED
|
@@ -46,7 +46,7 @@ export const createAndBroadcastTXFactory = (api) => async (
|
|
|
46
46
|
|
|
47
47
|
recentBlockhash = recentBlockhash || (await api.getRecentBlockHash())
|
|
48
48
|
|
|
49
|
-
let tokenParams =
|
|
49
|
+
let tokenParams = Object.create(null)
|
|
50
50
|
if (asset.assetType === 'SOLANA_TOKEN' || customMintAddress) {
|
|
51
51
|
const tokenMintAddress = customMintAddress || asset.mintAddress
|
|
52
52
|
const tokenAddress = findAssociatedTokenAddress(address, tokenMintAddress)
|
|
@@ -138,7 +138,7 @@ export const createAndBroadcastTXFactory = (api) => async (
|
|
|
138
138
|
await assetClientInterface.updateTxLogAndNotify({ assetName, walletAccount, txs: [tx] })
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
const changes =
|
|
141
|
+
const changes = Object.create(null)
|
|
142
142
|
if (asset.assetType === 'SOLANA_TOKEN') {
|
|
143
143
|
Object.assign(changes, {
|
|
144
144
|
balance: currentAccountState.balance.sub(feeAmount), // solana balance
|