@exodus/sui-api 1.1.0 → 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,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.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
+
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)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+
22
+ * fix: sui validateOverrides (#6735)
23
+
24
+
25
+
6
26
  ## [1.1.0](https://github.com/ExodusMovement/assets/compare/@exodus/sui-api@1.0.3...@exodus/sui-api@1.1.0) (2025-10-01)
7
27
 
8
28
 
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.0",
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",
@@ -15,7 +15,8 @@
15
15
  "author": "Exodus Movement, Inc.",
16
16
  "license": "MIT",
17
17
  "publishConfig": {
18
- "access": "public"
18
+ "access": "public",
19
+ "provenance": false
19
20
  },
20
21
  "scripts": {
21
22
  "test": "run -T exodus-test --jest",
@@ -49,5 +50,5 @@
49
50
  "type": "git",
50
51
  "url": "git+https://github.com/ExodusMovement/assets.git"
51
52
  },
52
- "gitHead": "b8636ba67e814522b1a744d94501c5eca38ebd68"
53
+ "gitHead": "05a1bf4c4e5be38ef0a77d67aa11af0e49002dec"
53
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
 
@@ -321,7 +321,7 @@ function validateOverrides(overrides) {
321
321
  if (overrides?.types) {
322
322
  for (const [type, val] of Object.entries(overrides.types)) {
323
323
  // NOTE: exodus dev edited on audit
324
- if (!isStructTag(type) || parseStructTag(type).typeParams.length > 0) {
324
+ if (parseStructTag(type).typeParams.length > 0) {
325
325
  throw new Error(
326
326
  'Type overrides must be first-level only. If you want to supply generic types, just pass each type individually.'
327
327
  )
@@ -485,5 +485,5 @@ function getNamesFromTypeList(types) {
485
485
  return names
486
486
  }
487
487
 
488
- export { MvrClient, findNamesInTransaction, hasMvrName, replaceNames }
488
+ export { MvrClient, findNamesInTransaction, hasMvrName, replaceNames, validateOverrides }
489
489
  // # sourceMappingURL=mvr.js.map