File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { METAMASK_SVG } from "./assets/metamask.svg.js";
1414import { NOSTR_SVG } from "./assets/nostr.svg.js" ;
1515import { OKX_SVG } from "./assets/okx.svg.js" ;
1616import { REI_SVG } from "./assets/rei.svg.js" ;
17- import { SUPERISE_SVG } from "./assets/superise.svg" ;
17+ import { SUPERISE_SVG } from "./assets/superise.svg.js " ;
1818import { UNI_SAT_SVG } from "./assets/uni-sat.svg.js" ;
1919import { UTXO_GLOBAL_SVG } from "./assets/utxo-global.svg.js" ;
2020
Original file line number Diff line number Diff line change 1- export * from "./ckb" ;
2- export * from "./signersFactory" ;
1+ export * from "./ckb/index.js " ;
2+ export * from "./signersFactory.js " ;
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ export class CkbSigner extends ccc.Signer {
3939 if ( ! connection ) return ;
4040 try {
4141 this . connection = JSON . parse ( connection ) as CkbConnection ;
42- } catch { }
42+ } catch ( error ) {
43+ console . error ( "Failed to restore superise connection:" , error ) ;
44+ }
4345 }
4446
4547 private async getConnection ( ) {
@@ -141,12 +143,14 @@ export class CkbSigner extends ccc.Signer {
141143 metadata : SignCkbHashAllMetadata ,
142144 ) {
143145 const txHash = ccc . Transaction . from ( tx ) . hash ( ) ;
144- this . _uiMetadataMap = { [ txHash ] : metadata } ;
146+ this . _uiMetadataMap [ txHash ] = metadata ;
145147 }
146148
147149 private getUiMetadataFromTx ( tx : ccc . TransactionLike ) {
148150 const txHash = ccc . Transaction . from ( tx ) . hash ( ) ;
149- return this . _uiMetadataMap [ txHash ] ;
151+ const metadata = this . _uiMetadataMap [ txHash ] ;
152+ delete this . _uiMetadataMap [ txHash ] ;
153+ return metadata ;
150154 }
151155
152156 override async prepareTransaction ( txLike : ccc . TransactionLike ) {
You can’t perform that action at this time.
0 commit comments