Skip to content

Commit fa5b14b

Browse files
committed
test: change call timeout
1 parent c11a360 commit fa5b14b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sample/Assets/Scripts/AuthenticatedScript.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ public class AuthenticatedScript : MonoBehaviour
3434
private Passport Passport;
3535
#pragma warning restore CS8618
3636

37-
void Start()
37+
async void Start()
3838
{
3939
if (Passport.Instance != null)
4040
{
4141
// Get Passport instance
4242
Passport = Passport.Instance;
4343
CheckIfConnectedToImx();
4444
CheckIfConnectedToZkEvm();
45+
46+
await Passport.SetCallTimeout(6 * 60000); ;
4547
}
4648
else
4749
{
@@ -265,8 +267,6 @@ public async void RegisterOffchain()
265267

266268
try
267269
{
268-
Passport.SetCallTimeout(120000);
269-
270270
RegisterUserResponse response = await Passport.RegisterOffchain();
271271

272272
if (response != null)
@@ -286,8 +286,6 @@ public async void RegisterOffchain()
286286
{
287287
ShowOutput($"Unable to register off-chain {e.Message}");
288288
}
289-
290-
Passport.SetCallTimeout(60000);
291289
}
292290

293291
/// <summary>

0 commit comments

Comments
 (0)