FIX: typescript compilation errors

This commit is contained in:
Gabriele Genta 2021-07-17 22:37:06 +02:00 committed by Overtorment
parent 9f339c56ae
commit 93321f06fb
6 changed files with 8 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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';

View File

@ -51,7 +51,7 @@ export class HDAezeedWallet extends AbstractHDElectrumWallet {
return this._xpub;
}
validateMnemonic(): boolean {
validateMnemonic() {
throw new Error('Use validateMnemonicAsync()');
}

View File

@ -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, {

View File

@ -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);