mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Merge branch 'master' of github.com:BlueWallet/BlueWallet
This commit is contained in:
commit
d5b643eae8
@ -426,7 +426,8 @@ export class AppStorage {
|
||||
}
|
||||
|
||||
// done
|
||||
if (!this.wallets.some(wallet => wallet.getSecret() === unserializedWallet.secret)) {
|
||||
const ID = unserializedWallet.getID();
|
||||
if (!this.wallets.some(wallet => wallet.getID() === ID)) {
|
||||
this.wallets.push(unserializedWallet);
|
||||
this.tx_metadata = data.tx_metadata;
|
||||
}
|
||||
@ -445,7 +446,7 @@ export class AppStorage {
|
||||
* @param wallet {AbstractWallet}
|
||||
*/
|
||||
deleteWallet = wallet => {
|
||||
const secret = wallet.getSecret();
|
||||
const ID = wallet.getID();
|
||||
const tempWallets = [];
|
||||
|
||||
if (wallet.type === LightningLdkWallet.type) {
|
||||
@ -457,7 +458,7 @@ export class AppStorage {
|
||||
for (const value of this.wallets) {
|
||||
if (value.type === PlaceholderWallet.type) {
|
||||
continue;
|
||||
} else if (value.getSecret() === secret) {
|
||||
} else if (value.getID() === ID) {
|
||||
// the one we should delete
|
||||
// nop
|
||||
} else {
|
||||
|
@ -125,7 +125,7 @@
|
||||
"coinselect": "3.1.12",
|
||||
"crypto-js": "4.1.1",
|
||||
"dayjs": "1.10.7",
|
||||
"detox": "18.20.3",
|
||||
"detox": "18.20.4",
|
||||
"ecurve": "1.0.6",
|
||||
"electrum-client": "https://github.com/BlueWallet/rn-electrum-client#99ebcc649d91a8dc39bea7964b02dd9ead464aa4",
|
||||
"electrum-mnemonic": "2.0.0",
|
||||
|
@ -29,7 +29,6 @@ import {
|
||||
} from '../../BlueComponents';
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
import BottomModal from '../../components/BottomModal';
|
||||
import Privacy from '../../blue_modules/Privacy';
|
||||
import { Chain, BitcoinUnit } from '../../models/bitcoinUnits';
|
||||
import HandoffComponent from '../../components/handoff';
|
||||
import AmountInput from '../../components/AmountInput';
|
||||
@ -341,7 +340,6 @@ const ReceiveDetails = () => {
|
||||
};
|
||||
|
||||
const obtainWalletAddress = useCallback(async () => {
|
||||
Privacy.enableBlur();
|
||||
console.log('receive/details - componentDidMount');
|
||||
wallet.setUserHasSavedExport(true);
|
||||
await saveToDisk();
|
||||
@ -413,7 +411,6 @@ const ReceiveDetails = () => {
|
||||
});
|
||||
return () => {
|
||||
task.cancel();
|
||||
Privacy.disableBlur();
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [wallet]),
|
||||
|
Loading…
Reference in New Issue
Block a user