File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @ckb-ccc/rei " : patch
3
+ ---
4
+
5
+ fix: update window.rei.ckb
Original file line number Diff line number Diff line change @@ -4,19 +4,19 @@ import { ReiSigner } from "./signer.js";
4
4
5
5
/**
6
6
* Retrieves the Rei signer if available.
7
- * @param client - The client instance.
8
- * @returns The Signer instance if the Rei provider is available, otherwise undefined.
7
+ * @param {ccc.Client } client - The client instance.
8
+ * @returns {Signer | undefined } The Signer instance if the Rei provider is available, otherwise undefined.
9
+
9
10
*/
10
11
export function getReiSigners ( client : ccc . Client ) : ccc . SignerInfo [ ] {
11
- const windowRef = window as { ckb ?: Provider } ;
12
+ const windowRef = window as { rei ?: { ckb : Provider } } ;
12
13
13
- if ( typeof windowRef . ckb === "undefined" ) {
14
+ if ( typeof windowRef ?. rei ? .ckb === "undefined" ) {
14
15
return [ ] ;
15
16
}
16
-
17
17
return [
18
18
{
19
- signer : new ReiSigner ( client , windowRef . ckb ) ,
19
+ signer : new ReiSigner ( client , windowRef . rei . ckb ) ,
20
20
name : "CKB" ,
21
21
} ,
22
22
] ;
You can’t perform that action at this time.
0 commit comments