Skip to content

Commit 0d250a4

Browse files
authored
Merge pull request #389 from immutable/refactor/link-config-arg
[DX-3550] refactor: rename env to environment in link config
2 parents f6fb5e4 + 092f271 commit 0d250a4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Packages/Marketplace/Runtime/LinkConfig.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ public static class LinkConfig
3232
private static string _apiOnRampKeySandbox = "d14b44fb-0f84-4db5-affb-e044040d724b";
3333
private static string _apiOnRampKeyProduction = "ad1bca70-d917-4628-bb0f-5609537498bc";
3434

35-
public static string GetBaseUrl(Environment env, Flow flow)
35+
public static string GetBaseUrl(Environment environment, Flow flow)
3636
{
3737
return flow switch
3838
{
39-
Flow.OnRamp => env == Environment.Sandbox ? _onRampBaseUrlSandbox : _onRampBaseUrlProduction,
40-
Flow.Swap => env == Environment.Sandbox ? _swapBaseUrlSandbox : _swapBaseUrlProduction,
41-
Flow.Bridge => env == Environment.Sandbox ? _bridgeBaseUrlSandbox : _bridgeBaseUrlProduction,
39+
Flow.OnRamp => environment == Environment.Sandbox ? _onRampBaseUrlSandbox : _onRampBaseUrlProduction,
40+
Flow.Swap => environment == Environment.Sandbox ? _swapBaseUrlSandbox : _swapBaseUrlProduction,
41+
Flow.Bridge => environment == Environment.Sandbox ? _bridgeBaseUrlSandbox : _bridgeBaseUrlProduction,
4242
_ => throw new ArgumentException("Invalid flow")
4343
};
4444
}
4545

46-
public static string GetApiKey(Environment env, Flow flow)
46+
public static string GetApiKey(Environment environment, Flow flow)
4747
{
4848
return flow is Flow.OnRamp ?
49-
env == Environment.Sandbox ? _apiOnRampKeySandbox : _apiOnRampKeyProduction :
49+
environment == Environment.Sandbox ? _apiOnRampKeySandbox : _apiOnRampKeyProduction :
5050
string.Empty;
5151
}
5252
}

0 commit comments

Comments
 (0)