Skip to content

Commit

Permalink
style: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Dec 2, 2024
1 parent 597678b commit 239aefd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions sample/Assets/Scripts/AuthenticatedScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public class AuthenticatedScript : MonoBehaviour
[SerializeField] private Button RequestAccountsButton;
[SerializeField] private Button GetBalanceButton;
[SerializeField] private Button GetTransactionReceiptButton;
[SerializeField] private Button SignTypedDataButton;
// Other
[SerializeField] private Button SignTypedDataButton;

// Other
[SerializeField] private Button LaunchBrowserButton;

private Passport Passport;
Expand All @@ -49,8 +49,8 @@ async void Start()
else
{
ShowOutput("Passport instance is null");
}
}

#if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN))
LaunchBrowserButton.gameObject.SetActive(true);
#else
Expand Down Expand Up @@ -409,12 +409,12 @@ public void ShowZkEvmGetTransactionReceipt()
public void ShowZkEvmSignTypedData()
{
SceneManager.LoadScene("ZkEvmSignTypedData");
}

}

#endregion

#region Other


/// <summary>
/// Clears the underlying WebView storage and cache, including any saved credentials.
/// </summary>
Expand All @@ -435,18 +435,18 @@ public void ClearStorageAndCache()
public void ShowSetCallTimeout()
{
SceneManager.LoadScene("SetCallTimeout");
}
}

/// <summary>
/// Navigates to Launch Browser scene.
/// </summary>
public void LaunchBrowser()
{
SceneManager.LoadScene("LaunchBrowser");
}
}

#endregion


/// <summary>
/// Prints the specified <code>message</code> to the output box.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion sample/Assets/Scripts/Other/LaunchBrowserScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

public class LaunchBrowserScript : MonoBehaviour
{

/// <summary>
/// Navigates back to the authenticated scene.
/// </summary>
Expand Down
12 changes: 6 additions & 6 deletions src/Packages/Passport/Runtime/Scripts/Public/Passport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public static UniTask<Passport> Init(
{
if (Instance == null)
{
PassportLogger.Info($"{TAG} Initialising Passport...");
PassportLogger.Info($"{TAG} Initialising Passport...");

#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
var obj = new GameObject("Passport");
Instance = obj.AddComponent<Passport>();
Expand Down Expand Up @@ -207,7 +207,7 @@ private async UniTask Initialise(
readySignalReceived = true;
#else
// Mark ready when browser is initialised and game bridge file is loaded
communicationsManager.OnReady += () =>readySignalReceived = true;
communicationsManager.OnReady += () => readySignalReceived = true;
#endif
// Set up Passport implementation
passportImpl = new PassportImpl(communicationsManager);
Expand All @@ -221,8 +221,8 @@ private async UniTask Initialise(
Instance = null;
throw ex;
}
}
}

#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
private void Awake()
{
Expand All @@ -237,7 +237,7 @@ private void Awake()
}
}
#endif


/// <summary>
/// Sets the timeout time for waiting for each call to respond (in milliseconds).
/// This only applies to functions that use the browser communications manager.
Expand Down

0 comments on commit 239aefd

Please sign in to comment.