Merge pull request #3664 from BlueWallet/limpbrains-disable-sign-ms

FIX: disable sign for MS wallets
This commit is contained in:
GLaDOS 2021-08-25 18:16:56 +01:00 committed by GitHub
commit 74130ee370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions

View File

@ -897,6 +897,10 @@ export class MultisigHDWallet extends AbstractHDElectrumWallet {
return true;
}
allowSignVerifyMessage() {
return false;
}
async fetchUtxo() {
await super.fetchUtxo();
// now we need to fetch txhash for each input as required by PSBT

View File

@ -4,6 +4,7 @@ import {
Alert,
Keyboard,
KeyboardAvoidingView,
LayoutAnimation,
Platform,
StyleSheet,
TextInput,
@ -12,6 +13,8 @@ import {
} from 'react-native';
import { useRoute, useTheme, useNavigation } from '@react-navigation/native';
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
import { Icon } from 'react-native-elements';
import Share from 'react-native-share';
import AOPP from '../../class/aopp';
import { BlueDoneAndDismissKeyboardInputAccessory, BlueFormLabel, BlueSpacing10, BlueSpacing20, SafeBlueArea } from '../../BlueComponents';
@ -20,8 +23,6 @@ import { FContainer, FButton } from '../../components/FloatButtons';
import { BlueStorageContext } from '../../blue_modules/storage-context';
import loc from '../../loc';
import confirm from '../../helpers/confirm';
import { Icon } from 'react-native-elements';
import Share from 'react-native-share';
const SignVerify = () => {
const { colors } = useTheme();
@ -129,6 +130,11 @@ const SignVerify = () => {
setLoading(false);
};
const handleFocus = value => {
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setMessageHasFocus(value);
};
if (loading)
return (
<View style={[stylesHooks.root, styles.loading]}>
@ -195,8 +201,8 @@ const SignVerify = () => {
autoCapitalize="none"
spellCheck={false}
editable={!loading}
onFocus={() => setMessageHasFocus(true)}
onBlur={() => setMessageHasFocus(false)}
onFocus={() => handleFocus(true)}
onBlur={() => handleFocus(false)}
/>
<BlueSpacing10 />