MCPcopy
hub / github.com/BlueWallet/BlueWallet / onCreate

Function onCreate

screen/wallets/addMultisigStep2.tsx:116–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

_onCreateFunction · 0.85
setIsLoadingFunction · 0.70
sleepFunction · 0.50

Tested by

no test coverage detected