Changeset View
Changeset View
Standalone View
Standalone View
native/account/siwe-panel.react.js
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | React.useEffect(() => { | ||||
(async () => { | (async () => { | ||||
dispatchActionPromise( | dispatchActionPromise( | ||||
getSIWENonceActionTypes, | getSIWENonceActionTypes, | ||||
(async () => { | (async () => { | ||||
const response = await getSIWENonceCall(); | const response = await getSIWENonceCall(); | ||||
setNonce(response); | setNonce(response); | ||||
})(), | })(), | ||||
); | ); | ||||
await commCoreModule.initializeCryptoAccount('PLACEHOLDER'); | await commCoreModule.initializeCryptoAccount(); | ||||
const { ed25519 } = await commCoreModule.getUserPublicKey(); | const { 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); | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |