mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 22:53:27 +08:00
fix: type errors
This commit is contained in:
@@ -64,7 +64,7 @@ export function useBitcoinContracts() {
|
||||
const currentAccountIndex = bitcoinAccountDetails.addressIndex;
|
||||
|
||||
const currentAddressPrivateKey = deriveAddressIndexKeychainFromAccount(
|
||||
nativeSegwitPrivateKeychain
|
||||
nativeSegwitPrivateKeychain.keychain
|
||||
)(currentAccountIndex).privateKey;
|
||||
|
||||
if (!currentAddressPrivateKey) return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Stack, Text, transition } from '@stacks/ui';
|
||||
import { Stack, Text } from '@stacks/ui';
|
||||
import { truncateMiddle } from '@stacks/ui-utils';
|
||||
|
||||
import { createMoneyFromDecimal } from '@shared/models/money.model';
|
||||
|
||||
@@ -52,7 +52,7 @@ const selectNativeSegwitActiveNetworkAccountPrivateKeychain = createSelector(
|
||||
})
|
||||
);
|
||||
|
||||
function useNativeSegwitActiveNetworkAccountPrivateKeychain() {
|
||||
export function useNativeSegwitActiveNetworkAccountPrivateKeychain() {
|
||||
return useSelector(selectNativeSegwitActiveNetworkAccountPrivateKeychain);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user