()
| 114 | }, [colors.buttonDisabledBackgroundColor, colors.foregroundColor, handleOnHelpPress, navigation]); |
| 115 | |
| 116 | const onCreate = async () => { |
| 117 | setIsLoading(true); |
| 118 | navigation.setOptions({ headerBackVisible: false }); |
| 119 | await sleep(100); |
| 120 | try { |
| 121 | await _onCreate(); // this can fail with "Duplicate fingerprint" error or other |
| 122 | } catch (e) { |
| 123 | setIsLoading(false); |
| 124 | navigation.setOptions({ headerBackVisible: true }); |
| 125 | const message = e instanceof Error ? e.message : String(e); |
| 126 | presentAlert({ message }); |
| 127 | console.log('create MS wallet error', e); |
| 128 | } |
| 129 | }; |
| 130 | |
| 131 | const _onCreate = async () => { |
| 132 | const w = new MultisigHDWallet(); |
nothing calls this directly
no test coverage detected