Skip to content

Commit

Permalink
test: change call timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Nov 11, 2024
1 parent c11a360 commit 52c3956
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sample/Assets/Scripts/AuthenticatedScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ public class AuthenticatedScript : MonoBehaviour
private Passport Passport;
#pragma warning restore CS8618

void Start()
async void Start()
{
if (Passport.Instance != null)
{
// Get Passport instance
Passport = Passport.Instance;
CheckIfConnectedToImx();
CheckIfConnectedToZkEvm();

Passport.SetCallTimeout(6 * 60000);
}
else
{
Expand Down Expand Up @@ -265,8 +267,6 @@ public async void RegisterOffchain()

try
{
Passport.SetCallTimeout(120000);

RegisterUserResponse response = await Passport.RegisterOffchain();

if (response != null)
Expand All @@ -286,8 +286,6 @@ public async void RegisterOffchain()
{
ShowOutput($"Unable to register off-chain {e.Message}");
}

Passport.SetCallTimeout(60000);
}

/// <summary>
Expand Down

0 comments on commit 52c3956

Please sign in to comment.