File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,16 @@ public class AuthenticatedScript : MonoBehaviour
34
34
private Passport Passport ;
35
35
#pragma warning restore CS8618
36
36
37
- void Start ( )
37
+ async void Start ( )
38
38
{
39
39
if ( Passport . Instance != null )
40
40
{
41
41
// Get Passport instance
42
42
Passport = Passport . Instance ;
43
43
CheckIfConnectedToImx ( ) ;
44
44
CheckIfConnectedToZkEvm ( ) ;
45
+
46
+ await Passport . SetCallTimeout ( 6 * 60000 ) ; ;
45
47
}
46
48
else
47
49
{
@@ -265,8 +267,6 @@ public async void RegisterOffchain()
265
267
266
268
try
267
269
{
268
- Passport . SetCallTimeout ( 120000 ) ;
269
-
270
270
RegisterUserResponse response = await Passport . RegisterOffchain ( ) ;
271
271
272
272
if ( response != null )
@@ -286,8 +286,6 @@ public async void RegisterOffchain()
286
286
{
287
287
ShowOutput ( $ "Unable to register off-chain { e . Message } ") ;
288
288
}
289
-
290
- Passport . SetCallTimeout ( 60000 ) ;
291
289
}
292
290
293
291
/// <summary>
You can’t perform that action at this time.
0 commit comments