mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +01:00
FIX: typescript compilation errors
This commit is contained in:
parent
9f339c56ae
commit
93321f06fb
@ -5,7 +5,7 @@ import loc from './loc';
|
||||
const prompt = require('./blue_modules/prompt');
|
||||
const currency = require('./blue_modules/currency');
|
||||
const BlueElectrum = require('./blue_modules/BlueElectrum'); // eslint-disable-line no-unused-vars
|
||||
const BlueApp: AppStorage = new AppStorage();
|
||||
const BlueApp = new AppStorage();
|
||||
// If attempt reaches 10, a wipe keychain option will be provided to the user.
|
||||
let unlockAttempt = 0;
|
||||
|
||||
|
@ -1 +1,3 @@
|
||||
export default from '@react-native-async-storage/async-storage/jest/async-storage-mock'
|
||||
import AsyncStorageMock from '@react-native-async-storage/async-storage/jest/async-storage-mock';
|
||||
|
||||
export default AsyncStorageMock;
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
CryptoPSBT,
|
||||
CryptoAccount,
|
||||
Bytes,
|
||||
} from '@keystonehq/bc-ur-registry';
|
||||
} from '@keystonehq/bc-ur-registry/dist';
|
||||
import { decodeUR as origDecodeUr, encodeUR as origEncodeUR, extractSingleWorkload as origExtractSingleWorkload } from '../bc-ur/dist';
|
||||
import { MultisigCosigner, MultisigHDWallet } from '../../class';
|
||||
import { Psbt } from 'bitcoinjs-lib';
|
||||
|
@ -51,7 +51,7 @@ export class HDAezeedWallet extends AbstractHDElectrumWallet {
|
||||
return this._xpub;
|
||||
}
|
||||
|
||||
validateMnemonic(): boolean {
|
||||
validateMnemonic() {
|
||||
throw new Error('Use validateMnemonicAsync()');
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ export default class Confirm extends Component {
|
||||
const payjoinUrl = this.state.payjoinUrl;
|
||||
// working through TOR - crafting custom requester that will handle TOR http request
|
||||
const customPayjoinRequester = {
|
||||
requestPayjoin: async function (psbt: Psbt) {
|
||||
requestPayjoin: async function (psbt) {
|
||||
console.warn('requesting payjoin with psbt:', psbt.toBase64());
|
||||
const api = new torrific.Torsbee();
|
||||
const torResponse = await api.post(payjoinUrl, {
|
||||
|
@ -55,7 +55,7 @@ const ViewEditMultisigCosigners = () => {
|
||||
const { walletId } = route.params;
|
||||
const w = useRef(wallets.find(wallet => wallet.getID() === walletId));
|
||||
const tempWallet = useRef(new MultisigHDWallet());
|
||||
const [wallet: MultisigHDWallet, setWallet] = useState();
|
||||
const [wallet, setWallet] = useState();
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [isSaveButtonDisabled, setIsSaveButtonDisabled] = useState(true);
|
||||
const [currentlyEditingCosignerNum, setCurrentlyEditingCosignerNum] = useState(false);
|
||||
|
Loading…
Reference in New Issue
Block a user