@exodus/solana-lib 3.15.1 → 3.15.3

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 CHANGED
@@ -3,6 +3,24 @@
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.15.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.15.1...@exodus/solana-lib@3.15.3) (2025-11-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: overly strict transaction comparison in fee payer verification (#6785)
13
+
14
+
15
+
16
+ ## [3.15.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.15.1...@exodus/solana-lib@3.15.2) (2025-11-04)
17
+
18
+ **Note:** Version bump only for package @exodus/solana-lib
19
+
20
+
21
+
22
+
23
+
6
24
  ## [3.15.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.15.0...@exodus/solana-lib@3.15.1) (2025-10-30)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-lib",
3
- "version": "3.15.1",
3
+ "version": "3.15.3",
4
4
  "description": "Solana utils, such as for cryptography, address encoding/decoding, transaction building, etc.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -47,5 +47,5 @@
47
47
  "type": "git",
48
48
  "url": "git+https://github.com/ExodusMovement/assets.git"
49
49
  },
50
- "gitHead": "9d712b3aad3011cee863c93accec6a552593bf61"
50
+ "gitHead": "4ed7fb1a57f5d2728f3e491f023144a4ccf3a1d4"
51
51
  }
@@ -173,14 +173,7 @@ class Tx {
173
173
  let amountLeft = new BN(amount)
174
174
  let amountToSend
175
175
  let isNotEnoughBalance = false
176
- for (let {
177
- mintAddress,
178
- tokenAccountAddress,
179
- balance,
180
- decimals,
181
- isDelegated,
182
- delegatedAmount,
183
- } of fromTokenAddresses) {
176
+ for (let { mintAddress, tokenAccountAddress, balance, decimals } of fromTokenAddresses) {
184
177
  // need to add more of this instruction until we reach the desired balance (amount) to send
185
178
  assert(mintAddress === tokenMintAddress, `Got unexpected mintAddress ${mintAddress}`)
186
179
 
@@ -188,15 +181,6 @@ class Tx {
188
181
  if (amountLeft.isZero()) break
189
182
 
190
183
  balance = new BN(balance)
191
-
192
- // For delegated accounts, limit transfer amount to delegated amount
193
- if (isDelegated) {
194
- const maxDelegated = new BN(delegatedAmount || '0')
195
- if (balance.gt(maxDelegated)) {
196
- balance = maxDelegated
197
- }
198
- }
199
-
200
184
  if (balance.gte(amountLeft)) {
201
185
  amountToSend = amountLeft
202
186
  amountLeft = new BN(0)
@@ -122,14 +122,24 @@ export function verifyOnlyFeePayerChanged(beforeTx, afterTx) {
122
122
  lodash.isEqual(
123
123
  {
124
124
  ...beforeTx.message,
125
- header: { ...beforeTx.message.header, numRequiredSignatures: null },
125
+ header: {
126
+ ...beforeTx.message.header,
127
+ numRequiredSignatures: null,
128
+ numReadonlySignedAccounts: null,
129
+ numReadonlyUnsignedAccounts: null,
130
+ },
126
131
  accountKeys: null,
127
132
  instructions: null,
128
133
  indexToProgramIds: null,
129
134
  },
130
135
  {
131
136
  ...afterTx.message,
132
- header: { ...afterTx.message.header, numRequiredSignatures: null },
137
+ header: {
138
+ ...afterTx.message.header,
139
+ numRequiredSignatures: null,
140
+ numReadonlySignedAccounts: null,
141
+ numReadonlyUnsignedAccounts: null,
142
+ },
133
143
  accountKeys: null,
134
144
  instructions: null,
135
145
  indexToProgramIds: null,