@exodus/solana-plugin 1.27.0 → 1.28.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 CHANGED
@@ -3,6 +3,26 @@
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.28.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.28.0...@exodus/solana-plugin@1.28.1) (2025-11-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: handle empty account info gracefully (#6877)
13
+
14
+
15
+
16
+ ## [1.28.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.27.0...@exodus/solana-plugin@1.28.0) (2025-10-30)
17
+
18
+
19
+ ### Features
20
+
21
+
22
+ * feat: Solana skip rent validation when usedFeePayer and update fee check logic (#6797)
23
+
24
+
25
+
6
26
  ## [1.27.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.26.1...@exodus/solana-plugin@1.27.0) (2025-10-27)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-plugin",
3
- "version": "1.27.0",
3
+ "version": "1.28.1",
4
4
  "description": "Solana plugin for Exodus SDK powered wallets.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -27,7 +27,7 @@
27
27
  "@exodus/bip44-constants": "^195.0.0",
28
28
  "@exodus/i18n-dummy": "^1.0.0",
29
29
  "@exodus/send-validation-model": "^1.0.0",
30
- "@exodus/solana-api": "^3.23.0",
30
+ "@exodus/solana-api": "^3.25.0",
31
31
  "@exodus/solana-lib": "^3.14.0",
32
32
  "@exodus/solana-meta": "^2.3.1",
33
33
  "@exodus/web3-solana-utils": "^2.9.0",
@@ -44,5 +44,5 @@
44
44
  "type": "git",
45
45
  "url": "git+https://github.com/ExodusMovement/assets.git"
46
46
  },
47
- "gitHead": "a5882a43d39ef9455f25523d20ed3060b40eb1a8"
47
+ "gitHead": "7f0c43b29e76145c34ef1d70ef5e0a2cec87f831"
48
48
  }
@@ -1,15 +1,19 @@
1
1
  import assert from 'minimalistic-assert'
2
2
 
3
+ const isEmptyAccountInfo = (obj) => {
4
+ return !obj || Object.keys(obj).length === 0
5
+ }
6
+
3
7
  export const createGetBalanceForAddress = ({ api, asset }) => {
4
8
  assert(api, 'api is required')
5
9
  assert(asset, 'asset is required')
6
10
  return async (address) => {
7
11
  const accountInfo = await api.getAccountInfo(address)
8
12
 
9
- if (accountInfo) {
10
- return asset.currency.baseUnit(accountInfo.lamports)
13
+ if (isEmptyAccountInfo(accountInfo)) {
14
+ return asset.currency.ZERO
11
15
  }
12
16
 
13
- return asset.currency.ZERO
17
+ return asset.currency.baseUnit(accountInfo.lamports)
14
18
  }
15
19
  }
@@ -72,7 +72,7 @@ const sendValidationsFactory = ({ api, assetName, assetClientInterface }) => {
72
72
  type: VALIDATION_TYPES.ERROR,
73
73
  shouldValidate: ({ asset, sendAmount }) => sendAmount,
74
74
  isValid: async ({ asset, destinationAddress, sendAmount, baseAssetBalance, fees }) => {
75
- if (!destinationAddress || !sendAmount || sendAmount.isZero) {
75
+ if (!destinationAddress || !sendAmount || sendAmount.isZero || fees?.usedFeePayer === true) {
76
76
  return true
77
77
  }
78
78