Skip to content

Commit a1dfba2

Browse files
committed
refactor: rename on ramp address argument
1 parent f06cab4 commit a1dfba2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sample/Assets/Scripts/Marketplace/OnRampScript.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void OpenWidget()
5050
var link = LinkFactory.GenerateOnRampLink(
5151
environment: environment,
5252
email: email,
53-
address: walletAddress,
53+
walletAddress: walletAddress,
5454
queryParams: new OnRampQueryParams
5555
{
5656
DefaultFiatCurrency = FiatCurrencyInput.text.IsNullOrEmpty() ? "USD" : FiatCurrencyInput.text,

src/Packages/Marketplace/Runtime/LinkFactory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class LinkFactory
1111
/// </summary>
1212
/// <param name="environment">Specifies the environment (<c>Sandbox</c> or <c>Production</c>).</param>
1313
/// <param name="email">The user's email address, pre-filled in the on-ramp flow.</param>
14-
/// <param name="address">The user's wallet address, where tokens will be sent.</param>
14+
/// <param name="walletAddress">The user's wallet address, where tokens will be sent.</param>
1515
/// <param name="queryParams">The query parameters for the on-ramp flow. Uses default values if not specified.</param>
1616
/// <param name="extraQueryParams">Optional additional query parameters. See <a href="https://docs.transak.com/docs/query-parameters">Transak docs</a> for possible fields.</param>
1717
/// <returns>The generated on-ramp URL.</returns>
@@ -24,7 +24,7 @@ public class LinkFactory
2424
public static string GenerateOnRampLink(
2525
Environment environment,
2626
string email,
27-
string address,
27+
string walletAddress,
2828
OnRampQueryParams queryParams = default,
2929
Dictionary<string, string>? extraQueryParams = null
3030
)
@@ -83,7 +83,7 @@ public static string GenerateOnRampLink(
8383
? themeColor
8484
: "0D0D0D"
8585
},
86-
{ "walletAddress", address }
86+
{ "walletAddress", walletAddress }
8787
};
8888

8989

0 commit comments

Comments
 (0)