File tree 2 files changed +3
-4
lines changed
packages/web-provider/src
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -366,8 +366,8 @@ export const createMinaProvider = async (): Promise<
366
366
}
367
367
368
368
try {
369
- await _vault . storePrivateCredential ( result . result )
370
- return { success : result . result }
369
+ await _vault . storePrivateCredential ( JSON . parse ( result . result ) )
370
+ return { success : JSON . parse ( result . result ) }
371
371
} catch ( error : any ) {
372
372
throw createProviderRpcError (
373
373
4100 ,
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ export interface IVaultService {
19
19
getNetworkId ( ) : Promise < string | undefined >
20
20
getNetworkIds ( ) : Promise < string [ ] >
21
21
setState ( state : Json ) : Promise < void >
22
- // TODO: change from any to type from minajs
23
- storePrivateCredential ( state : string ) : Promise < void >
22
+ storePrivateCredential ( state : Json ) : Promise < void >
24
23
getPrivateCredential ( query ?: SearchQuery ) : Promise < StoredObject [ ] >
25
24
getEnabled ( { origin } : { origin : string } ) : Promise < boolean >
26
25
setEnabled ( { origin } : { origin : string } ) : Promise < void >
You can’t perform that action at this time.
0 commit comments