@@ -149,21 +149,9 @@ function SignupArgentInner({ username }: { username: string }) {
149
149
const buffer = base64url . toBuffer ( challenge ) ;
150
150
const high = "0x" + buffer . subarray ( 0 , 16 ) . toString ( "hex" ) ;
151
151
const low = "0x" + buffer . subarray ( 16 , 32 ) . toString ( "hex" ) ;
152
- console . log ( { high, low } ) ;
153
- console . log ( { challenge : "0x" + buffer . toString ( "hex" ) } ) ;
154
-
155
152
const typedData = registerTypedData ( username , { low, high } , chainId ) ;
156
-
157
- const hash = await extAccount . hashMessage ( typedData ) ;
158
- console . log ( { hash } ) ;
159
-
160
153
const sig = await extAccount . signMessage ( typedData ) ;
161
- const finalizeMutation = await finalizeAccountSignup (
162
- extAccount . address ,
163
- chainId ,
164
- sig as string [ ] ,
165
- ) ;
166
- console . log ( { finalizeMutation } ) ;
154
+ await finalizeAccountSignup ( extAccount . address , chainId , sig as string [ ] ) ;
167
155
168
156
// set controller address & calldata
169
157
const salt = shortString . encodeShortString ( username ) ;
@@ -283,7 +271,7 @@ function SignupArgentInner({ username }: { username: string }) {
283
271
break ;
284
272
}
285
273
}
286
- } ) ;
274
+ } , [ state , username , setTitle ] ) ;
287
275
288
276
return (
289
277
< Container
@@ -419,9 +407,8 @@ function SignupArgentInner({ username }: { username: string }) {
419
407
< Button
420
408
colorScheme = "colorful"
421
409
onClick = { ( ) => {
422
-
423
410
console . log ( "deploy" ) ;
424
- onDeploy ( )
411
+ onDeploy ( ) ;
425
412
} }
426
413
isLoading = { isDeploying }
427
414
isDisabled = { ! ( isAllFunded && isChecked && extAccount ) }
@@ -455,7 +442,7 @@ function ExternalWalletProvider({ children }: PropsWithChildren) {
455
442
function useTokens ( ) {
456
443
const { account : extAccount } = useAccount ( ) ;
457
444
const { provider } = useProvider ( ) ;
458
- const { controller , prefunds } = useConnection ( ) ;
445
+ const { prefunds } = useConnection ( ) ;
459
446
const [ tokens , setTokens ] = useState < TokenInfo [ ] > ( [ ] ) ;
460
447
const [ isChecked , setIsChecked ] = useState ( false ) ;
461
448
const [ isFetching , setIsFetching ] = useState ( true ) ;
@@ -476,7 +463,7 @@ function useTokens() {
476
463
if ( ! isChecked ) {
477
464
setIsChecked ( true ) ;
478
465
}
479
- } , [ tokens , controller , isChecked , extAccount ?. address , provider ] ) ;
466
+ } , [ tokens , isChecked , extAccount ?. address , provider ] ) ;
480
467
481
468
useInterval ( checkFunds , 3000 ) ;
482
469
0 commit comments