File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " viem " : patch
3
+ ---
4
+
5
+ Fixed wallet_watchAsset type.
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export async function watchAsset<
42
42
) : Promise < WatchAssetReturnType > {
43
43
const added = await client . request ( {
44
44
method : 'wallet_watchAsset' ,
45
- params : [ params ] ,
45
+ params,
46
46
} )
47
47
return added
48
48
}
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export type WatchAssetParams = {
126
126
/** The number of token decimals */
127
127
decimals : number
128
128
/** A string url of the token logo */
129
- image : string
129
+ image ? : string
130
130
}
131
131
}
132
132
@@ -1049,7 +1049,7 @@ export type WalletRequests = {
1049
1049
* */
1050
1050
request ( args : {
1051
1051
method : 'wallet_watchAsset'
1052
- params : [ WatchAssetParams ]
1052
+ params : WatchAssetParams
1053
1053
} ) : Promise < boolean >
1054
1054
}
1055
1055
You can’t perform that action at this time.
0 commit comments