Page MenuHomePhabricator

D11767.diff
No OneTemporary

D11767.diff

diff --git a/native/account/fullscreen-siwe-panel.react.js b/native/account/fullscreen-siwe-panel.react.js
--- a/native/account/fullscreen-siwe-panel.react.js
+++ b/native/account/fullscreen-siwe-panel.react.js
@@ -17,7 +17,6 @@
import {
useLegacySIWEServerCall,
useIdentityWalletLogInCall,
- useIdentityWalletRegisterCall,
} from './siwe-hooks.js';
import SIWEPanel from './siwe-panel.react.js';
import { commRustModule } from '../native-modules.js';
@@ -27,6 +26,7 @@
} from '../navigation/route-names.js';
import { UnknownErrorAlertDetails } from '../utils/alert-messages.js';
import Alert from '../utils/alert.js';
+import { defaultURLPrefix } from '../utils/url-utils.js';
type Props = {
+goBackToPrompt: () => mixed,
@@ -46,7 +46,8 @@
const registrationContext = React.useContext(RegistrationContext);
invariant(registrationContext, 'registrationContext should be set');
- const { setSkipEthereumLoginOnce } = registrationContext;
+ const { setSkipEthereumLoginOnce, register: registrationServerCall } =
+ registrationContext;
const getEthereumAccountFromSIWEResult =
useGetEthereumAccountFromSIWEResult();
@@ -71,7 +72,6 @@
const legacySiweServerCall = useLegacySIWEServerCall();
const identityWalletLogInCall = useIdentityWalletLogInCall();
- const identityWalletRegisterCall = useIdentityWalletRegisterCall();
const successRef = React.useRef(false);
const dispatch = useDispatch();
const onSuccess = React.useCallback(
@@ -86,7 +86,18 @@
} else if (enableNewRegistrationMode) {
await onAccountDoesNotExist(result);
} else {
- await identityWalletRegisterCall(result);
+ await registrationServerCall({
+ coolOrNerdMode: 'cool',
+ keyserverURL: defaultURLPrefix,
+ farcasterID: null,
+ accountSelection: {
+ accountType: 'ethereum',
+ ...result,
+ avatarURI: null,
+ },
+ avatarData: null,
+ clearCachedSelections: () => {},
+ });
}
} catch (e) {
Alert.alert(
@@ -129,7 +140,7 @@
},
[
identityWalletLogInCall,
- identityWalletRegisterCall,
+ registrationServerCall,
goBackToPrompt,
dispatch,
legacySiweServerCall,

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 2:39 AM (17 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2684716
Default Alt Text
D11767.diff (2 KB)

Event Timeline