@exodus/solana-plugin 1.24.3 → 1.24.4

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,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
+ ## [1.24.4](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.24.3...@exodus/solana-plugin@1.24.4) (2025-09-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: simplify solana address type validation (#6474)
13
+
14
+
15
+
6
16
  ## [1.24.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.24.2...@exodus/solana-plugin@1.24.3) (2025-09-16)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-plugin",
3
- "version": "1.24.3",
3
+ "version": "1.24.4",
4
4
  "description": "Solana plugin for Exodus SDK powered wallets.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -43,5 +43,5 @@
43
43
  "type": "git",
44
44
  "url": "git+https://github.com/ExodusMovement/assets.git"
45
45
  },
46
- "gitHead": "f205dceaa506c168cb789204d99fec4c70b86dfd"
46
+ "gitHead": "90c85c31ff9bff8c11a0873592d4ed8184bd4145"
47
47
  }
@@ -28,16 +28,16 @@ const sendValidationsFactory = ({ api, assetName, assetClientInterface }) => {
28
28
  field: FIELDS.ADDRESS,
29
29
  priority: PRIORITY_LEVELS.BASE,
30
30
  validateAndGetMessage: async ({ asset, destinationAddress }) => {
31
- if (asset.name !== assetName || !destinationAddress) {
31
+ if (!destinationAddress) {
32
32
  return
33
33
  }
34
34
 
35
35
  const addressDetails = await getAccountInfoCached(destinationAddress)
36
- if (!addressDetails || addressDetails.addressType !== 'token') {
37
- return
36
+ if (addressDetails.addressType === 'token') {
37
+ return t(
38
+ `The Solana network doesn't allow sending ${asset.displayTicker} to a Token Account address.`
39
+ )
38
40
  }
39
-
40
- return t('Destination address is for a different token type.')
41
41
  },
42
42
  })
43
43
 
@@ -67,23 +67,6 @@ const sendValidationsFactory = ({ api, assetName, assetClientInterface }) => {
67
67
  },
68
68
  })
69
69
 
70
- const solanaAddressValidator = createValidator({
71
- id: 'SOLANA_ADDRESS',
72
- type: VALIDATION_TYPES.ERROR,
73
- priority: PRIORITY_LEVELS.MIDDLE,
74
- field: FIELDS.ADDRESS,
75
- validateAndGetMessage: async ({ asset, destinationAddress }) => {
76
- if (asset.name !== assetName || !destinationAddress) {
77
- return
78
- }
79
-
80
- const addressDetails = await getAccountInfoCached(destinationAddress)
81
- if (addressDetails.addressType === 'token') {
82
- return t(`The Solana network doesn't allow sending SOL to a Token Account address.`)
83
- }
84
- },
85
- })
86
-
87
70
  const solanaRentExemptAmountValidator = createValidator({
88
71
  id: 'SOL_RENT_EXEMPT_AMOUNT',
89
72
  type: VALIDATION_TYPES.ERROR,
@@ -170,7 +153,6 @@ const sendValidationsFactory = ({ api, assetName, assetClientInterface }) => {
170
153
  })
171
154
  return [
172
155
  solanaAddressTypeValidator,
173
- solanaAddressValidator,
174
156
  solanaMintAddressValidator,
175
157
  solanaRentExemptAmountValidator,
176
158
  solanaPayValidator,