Skip to content

Commit 08f1ee3

Browse files
committed
chore(ts-sdk-sui): fixing ci errors
Signed-off-by: kaancaglan <[email protected]>
1 parent 951db4c commit 08f1ee3

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ packages:
99
- 'ts-sdk-evm'
1010
- 'typescript-sdk'
1111
- 'zkgm-dev'
12-
- 'ts-sdk-sui'
12+
- 'ts-sdk-sui'

ts-sdk-sui/src/internal/sui.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const publicClientLayer = <
1010
Id,
1111
>(tag: Context.Tag<Id, Sui.Sui.PublicClient>) =>
1212
(
13-
// interface unchanged (variadic)
1413
...options: Parameters<any>
1514
): Layer.Layer<Id, Sui.CreatePublicClientError> =>
1615
Layer.effect(
@@ -20,11 +19,9 @@ export const publicClientLayer = <
2019
try: () => new SuiClient(options[0] as SuiClientOptions),
2120
catch: (err) =>
2221
new Sui.CreatePublicClientError({
23-
// mirror your Sui error-detail extraction
2422
cause: Utils.extractErrorDetails(err as Sui.CreatePublicClientError),
2523
}),
2624
}),
27-
// keep the { client } shape
2825
Effect.map((client) => ({ client })),
2926
),
3027
)

ts-sdk/src/Token.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,18 @@ export const AnyFromEncoded = (rpcType: Chain.RpcType) =>
239239
},
240240
)
241241

242+
/**
243+
* @since 2.0.0
244+
*/
242245
export const normalizeSuiTypeTag = (t: string): string => {
243246
const [addr, mod, name] = t.split("::")
244247
return `${normalizeSuiAddress(addr)}::${mod}::${name}`
245248
}
246249

250+
251+
/**
252+
* @since 2.0.0
253+
*/
247254
const isNativeSui = (t: string): boolean => {
248255
// compare on normalized address to avoid short/long mismatch
249256
const norm = normalizeSuiTypeTag(t)

0 commit comments

Comments
 (0)