@openfort/react-native 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -552,7 +552,7 @@ export function useEmbeddedEthereumWallet(options = {}) {
|
|
|
552
552
|
wallets,
|
|
553
553
|
setActive,
|
|
554
554
|
setRecovery,
|
|
555
|
-
exportPrivateKey: client.embeddedWallet.exportPrivateKey,
|
|
555
|
+
exportPrivateKey: () => client.embeddedWallet.exportPrivateKey(),
|
|
556
556
|
};
|
|
557
557
|
// Priority 1: Explicit action states (user-initiated operations)
|
|
558
558
|
if (status.status === 'fetching-wallets') {
|
|
@@ -477,6 +477,7 @@ export function useEmbeddedSolanaWallet(options = {}) {
|
|
|
477
477
|
create,
|
|
478
478
|
wallets,
|
|
479
479
|
setActive,
|
|
480
|
+
exportPrivateKey: () => client.embeddedWallet.exportPrivateKey(),
|
|
480
481
|
};
|
|
481
482
|
// Priority 1: Explicit action states (user-initiated operations)
|
|
482
483
|
if (status.status === 'fetching-wallets') {
|
|
@@ -512,6 +513,6 @@ export function useEmbeddedSolanaWallet(options = {}) {
|
|
|
512
513
|
}
|
|
513
514
|
// Default: disconnected (authenticated but no wallet selected)
|
|
514
515
|
return { ...baseActions, status: 'disconnected', activeWallet: null };
|
|
515
|
-
}, [status, activeWallet, activeAccount, provider, wallets, embeddedState, create, setActive]);
|
|
516
|
+
}, [status, activeWallet, activeAccount, provider, wallets, embeddedState, create, setActive, client.embeddedWallet]);
|
|
516
517
|
return state;
|
|
517
518
|
}
|
|
@@ -315,6 +315,10 @@ export interface SolanaWalletActions {
|
|
|
315
315
|
* Set a wallet as active (recover/connect to it)
|
|
316
316
|
*/
|
|
317
317
|
setActive(options: SetActiveSolanaWalletOptions): Promise<void>;
|
|
318
|
+
/**
|
|
319
|
+
* Export the private key of the active wallet
|
|
320
|
+
*/
|
|
321
|
+
exportPrivateKey(): Promise<string>;
|
|
318
322
|
}
|
|
319
323
|
/**
|
|
320
324
|
* Ethereum wallet hook return type - discriminated union based on status
|