Changeset View
Changeset View
Standalone View
Standalone View
native/account/siwe-panel.react.js
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | (async () => { | ||||
dispatchActionPromise( | dispatchActionPromise( | ||||
getSIWENonceActionTypes, | getSIWENonceActionTypes, | ||||
(async () => { | (async () => { | ||||
const response = await getSIWENonceCall(); | const response = await getSIWENonceCall(); | ||||
setNonce(response); | setNonce(response); | ||||
})(), | })(), | ||||
); | ); | ||||
await commCoreModule.initializeCryptoAccount(); | await commCoreModule.initializeCryptoAccount(); | ||||
const { ed25519 } = await commCoreModule.getUserPublicKey(); | const { | ||||
primaryIdentityPublicKeys: { ed25519 }, | |||||
} = await commCoreModule.getUserPublicKey(); | |||||
setPrimaryIdentityPublicKey(ed25519); | setPrimaryIdentityPublicKey(ed25519); | ||||
})(); | })(); | ||||
}, [dispatchActionPromise, getSIWENonceCall]); | }, [dispatchActionPromise, getSIWENonceCall]); | ||||
const [isLoading, setLoading] = React.useState(true); | const [isLoading, setLoading] = React.useState(true); | ||||
const [isWalletConnectModalOpen, setWalletConnectModalOpen] = | const [isWalletConnectModalOpen, setWalletConnectModalOpen] = | ||||
React.useState(false); | React.useState(false); | ||||
const insets = useSafeAreaInsets(); | const insets = useSafeAreaInsets(); | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |