@exodus/solana-api 3.17.0 → 3.17.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/CHANGELOG.md +10 -0
- package/package.json +2 -2
- package/src/create-unsigned-tx-for-send.js +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.17.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.17.0...@exodus/solana-api@3.17.1) (2025-04-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix(solana): don't estimate without fee payer if one is provided (#5435)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [3.17.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.16.0...@exodus/solana-api@3.17.0) (2025-04-09)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.1",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Solana",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@exodus/assets-testing": "^1.0.0",
|
|
48
48
|
"@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f0b2b4a3a3dab9be7d36f6d4118c50204c25f40e",
|
|
51
51
|
"bugs": {
|
|
52
52
|
"url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
|
|
53
53
|
},
|
|
@@ -160,9 +160,17 @@ export const createUnsignedTxForSend = async ({
|
|
|
160
160
|
return 150 + CU_FOR_COMPUTE_BUDGET_INSTRUCTIONS
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
const transactionForFeeEstimation =
|
|
163
|
+
const transactionForFeeEstimation = await maybeAddFeePayer({
|
|
164
|
+
unsignedTx,
|
|
165
|
+
feePayerApiUrl,
|
|
166
|
+
assetName: asset.baseAsset.name,
|
|
167
|
+
})
|
|
168
|
+
const message = transactionForFeeEstimation.txMeta.usedFeePayer
|
|
169
|
+
? deserializeTransaction(transactionForFeeEstimation.txData.transactionBuffer).message
|
|
170
|
+
: prepareForSigning(transactionForFeeEstimation).message
|
|
171
|
+
|
|
164
172
|
const { unitsConsumed, err } = await api.simulateUnsignedTransaction({
|
|
165
|
-
message
|
|
173
|
+
message,
|
|
166
174
|
})
|
|
167
175
|
if (err) throw new Error(JSON.stringify(err))
|
|
168
176
|
return unitsConsumed + CU_FOR_COMPUTE_BUDGET_INSTRUCTIONS
|
|
@@ -216,7 +224,6 @@ export const createUnsignedTxForSend = async ({
|
|
|
216
224
|
unsignedTx,
|
|
217
225
|
feePayerApiUrl,
|
|
218
226
|
assetName: asset.baseAsset.name,
|
|
219
|
-
useFeePayer,
|
|
220
227
|
})
|
|
221
228
|
}
|
|
222
229
|
|