File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ packages:
9
9
- ' ts-sdk-evm'
10
10
- ' typescript-sdk'
11
11
- ' zkgm-dev'
12
- - ' ts-sdk-sui'
12
+ - ' ts-sdk-sui'
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export const publicClientLayer = <
10
10
Id ,
11
11
> ( tag : Context . Tag < Id , Sui . Sui . PublicClient > ) =>
12
12
(
13
- // interface unchanged (variadic)
14
13
...options : Parameters < any >
15
14
) : Layer . Layer < Id , Sui . CreatePublicClientError > =>
16
15
Layer . effect (
@@ -20,11 +19,9 @@ export const publicClientLayer = <
20
19
try : ( ) => new SuiClient ( options [ 0 ] as SuiClientOptions ) ,
21
20
catch : ( err ) =>
22
21
new Sui . CreatePublicClientError ( {
23
- // mirror your Sui error-detail extraction
24
22
cause : Utils . extractErrorDetails ( err as Sui . CreatePublicClientError ) ,
25
23
} ) ,
26
24
} ) ,
27
- // keep the { client } shape
28
25
Effect . map ( ( client ) => ( { client } ) ) ,
29
26
) ,
30
27
)
Original file line number Diff line number Diff line change @@ -239,11 +239,18 @@ export const AnyFromEncoded = (rpcType: Chain.RpcType) =>
239
239
} ,
240
240
)
241
241
242
+ /**
243
+ * @since 2.0.0
244
+ */
242
245
export const normalizeSuiTypeTag = ( t : string ) : string => {
243
246
const [ addr , mod , name ] = t . split ( "::" )
244
247
return `${ normalizeSuiAddress ( addr ) } ::${ mod } ::${ name } `
245
248
}
246
249
250
+
251
+ /**
252
+ * @since 2.0.0
253
+ */
247
254
const isNativeSui = ( t : string ) : boolean => {
248
255
// compare on normalized address to avoid short/long mismatch
249
256
const norm = normalizeSuiTypeTag ( t )
You can’t perform that action at this time.
0 commit comments