@exodus/sui-api 1.1.1 → 1.1.2

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.1.2](https://github.com/ExodusMovement/assets/compare/@exodus/sui-api@1.1.1...@exodus/sui-api@1.1.2) (2025-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: swap sui - gasBudget is wrapped into feeOpts object (#6828)
13
+
14
+
15
+
6
16
  ## [1.1.1](https://github.com/ExodusMovement/assets/compare/@exodus/sui-api@1.1.0...@exodus/sui-api@1.1.1) (2025-10-17)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exodus/sui-api",
3
3
  "packageManager": "yarn@4.3.1",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "description": "Transaction monitors, RPC with the blockchain node, and other networking code for Sui",
6
6
  "type": "module",
7
7
  "main": "src/index.js",
@@ -50,5 +50,5 @@
50
50
  "type": "git",
51
51
  "url": "git+https://github.com/ExodusMovement/assets.git"
52
52
  },
53
- "gitHead": "b1b01b7be250d9be1050538324062c3cc92964df"
53
+ "gitHead": "05a1bf4c4e5be38ef0a77d67aa11af0e49002dec"
54
54
  }
package/src/tx-send.js CHANGED
@@ -216,7 +216,14 @@ const updateAccountStateAfterSend = async ({
216
216
  export const txSendFactory = ({ assetClientInterface: aci, serverApi, createUnsignedTx }) => {
217
217
  assert(aci, 'assetClientInterface is required')
218
218
 
219
- return async ({ asset, walletAccount, address: recipientAddress, amount, gasBudget }) => {
219
+ return async ({
220
+ asset,
221
+ walletAccount,
222
+ address: recipientAddress,
223
+ amount,
224
+ gasBudget,
225
+ feeOpts,
226
+ }) => {
220
227
  const { name: assetName } = asset
221
228
 
222
229
  const senderAddress = await aci.getReceiveAddress({ assetName, walletAccount })
@@ -227,7 +234,7 @@ export const txSendFactory = ({ assetClientInterface: aci, serverApi, createUnsi
227
234
  recipientAddress,
228
235
  amount: amount.toBaseString(),
229
236
  serverApi,
230
- gasBudget,
237
+ gasBudget: gasBudget || feeOpts.gasBudget,
231
238
  walletAccount,
232
239
  })
233
240