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 Jan 28, 2025
1 parent 1f24fc3 commit 6bb7cce
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion sample/Assets/Scripts/Marketplace/BridgeScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class BridgeScript : MonoBehaviour
[SerializeField] private InputField FromChain;
[SerializeField] private InputField ToTokenAddress;
[SerializeField] private InputField ToChain;

[SerializeField] private Button OpenButton;

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions sample/Assets/Scripts/Marketplace/MarketplaceScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ public void OnRamp()
{
SceneManager.LoadScene("OnRampScene");
}

public void Swap()
{
SceneManager.LoadScene("SwapScene");
}

public void Bridge()
{
SceneManager.LoadScene("BridgeScene");
Expand Down
4 changes: 2 additions & 2 deletions sample/Assets/Scripts/Marketplace/OnRampScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class OnRampScript : MonoBehaviour
[SerializeField] private InputField FiatAmountInput;
[SerializeField] private InputField CryptoCurrency;
[SerializeField] private InputField CryptoCurrencyList;

[SerializeField] private Button OpenButton;

private void Start()
Expand Down Expand Up @@ -58,7 +58,7 @@ public void OpenWidget()

Application.OpenURL(link);
}

/// <summary>
/// Returns to the marketplace scene.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions sample/Assets/Scripts/Marketplace/SwapScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SwapScript : MonoBehaviour

[SerializeField] private InputField FromTokenAddress;
[SerializeField] private InputField ToTokenAddress;

[SerializeField] private Button OpenButton;

private void Start()
Expand Down Expand Up @@ -42,7 +42,7 @@ public void OpenWidget()
var publishableKey = KeyInput.text;

var link = LinkFactory.GenerateSwapLink(
environment: environment,
environment: environment,
publishableKey: publishableKey,
fromTokenAddress: FromTokenAddress.text.IsNullOrEmpty() ? null : FromTokenAddress.text,
toTokenAddress: ToTokenAddress.text.IsNullOrEmpty() ? null : ToTokenAddress.text
Expand Down
8 changes: 4 additions & 4 deletions src/Packages/Marketplace/Runtime/LinkConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public static class LinkConfig
{
private static string _onRampBaseUrlSandbox = "https://global-stg.transak.com";
private static string _onRampBaseUrlProduction = "https://global.transak.com";

private static string _swapBaseUrlSandbox = "https://checkout-playground.sandbox.immutable.com/checkout/swap";
private static string _swapBaseUrlProduction = "https://toolkit.immutable.com/checkout/swap";

private static string _bridgeBaseUrlSandbox = "https://checkout-playground.sandbox.immutable.com/checkout/squid";
private static string _bridgeBaseUrlProduction = "https://toolkit.immutable.com/checkout/squid";

Expand All @@ -45,8 +45,8 @@ public static string GetBaseUrl(Environment env, Flow flow)

public static string GetApiKey(Environment env, Flow flow)
{
return flow is Flow.OnRamp ?
env == Environment.Sandbox ? _apiOnRampKeySandbox : _apiOnRampKeyProduction :
return flow is Flow.OnRamp ?
env == Environment.Sandbox ? _apiOnRampKeySandbox : _apiOnRampKeyProduction :
string.Empty;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Packages/Marketplace/Runtime/LinkFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static string GenerateOnRampLink(
var queryString = string.Join("&", queryParams.Select(kvp => $"{kvp.Key}={Uri.EscapeDataString(kvp.Value)}").ToArray());
return $"{baseUrl}?{queryString}";
}

/// <summary>
/// Generates a link for the swap flow.
/// </summary>
Expand Down Expand Up @@ -88,7 +88,7 @@ public static string GenerateSwapLink(
var queryString = string.Join("&", queryParams.Select(kvp => $"{kvp.Key}={Uri.EscapeDataString(kvp.Value)}").ToArray());
return $"{baseUrl}?{queryString}";
}

/// <summary>
/// Generates a link for the bridge flow.
/// </summary>
Expand Down

0 comments on commit 6bb7cce

Please sign in to comment.