Skip to content

Commit f857da6

Browse files
author
Andrey Dobrikov
committed
Rename CreateWallet -> CreateEthereumWallet
1 parent 4060167 commit f857da6

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

SDK/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ try {
100100
IPrivyUser privyUser = await PrivyManager.Instance.GetUser();
101101

102102
if (privyUser != null) {
103-
IEmbeddedEthereumWallet wallet = await privyUser.CreateWallet();
103+
IEmbeddedEthereumWallet wallet = await privyUser.CreateEthereumWallet();
104104
Debug.Log("New wallet created with address: " + wallet.Address);
105105
}
106106
} catch {

SDK/Runtime/Auth/Models/IPrivyUser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public interface IPrivyUser
5454
Task<string> GetIdentityToken();
5555

5656
/// <summary>
57-
/// Creates a new embedded wallet for the user.
57+
/// Creates a new embedded Ethereum wallet for the user.
5858
/// </summary>
5959
/// <param name="allowAdditional">Whether to allow the creation of additional wallets derived from the primary HD wallet</param>
6060
/// <returns>A task that represents the asynchronous operation. The task result contains the newly created embedded wallet.</returns>
@@ -64,7 +64,7 @@ public interface IPrivyUser
6464
/// <exception cref="PrivyWalletException">
6565
/// Thrown if the wallet creation fails or the wallet cannot be added to the user's account.
6666
/// </exception>
67-
Task<IEmbeddedEthereumWallet> CreateWallet(bool allowAdditional = false);
67+
Task<IEmbeddedEthereumWallet> CreateEthereumWallet(bool allowAdditional = false);
6868

6969

7070
/// <summary>

SDK/Runtime/Auth/Models/PrivyUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public async Task<string> GetIdentityToken()
144144
}
145145

146146
// Public Methods
147-
public async Task<IEmbeddedEthereumWallet> CreateWallet(bool allowAdditional = false)
147+
public async Task<IEmbeddedEthereumWallet> CreateEthereumWallet(bool allowAdditional = false)
148148
{
149149
var appConfig = await _appConfigRepository.LoadAppConfig();
150150
if (appConfig.EmbeddedWalletConfig.Mode == EmbeddedWalletMode.UserControlledServerWalletsOnly)

SampleApp/Assets/Scripts/Debug/DebugConsoleCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public static async void EthCreateWallet()
174174
try
175175
{
176176
var user = await GetUserOrThrow();
177-
var wallet = await user.CreateWallet(allowAdditional: false);
177+
var wallet = await user.CreateEthereumWallet(allowAdditional: false);
178178
Debug.Log($"[privy.eth.create] Wallet created: {wallet.Address}");
179179
}
180180
catch (Exception ex)
@@ -189,7 +189,7 @@ public static async void EthCreateAdditionalWallet()
189189
try
190190
{
191191
var user = await GetUserOrThrow();
192-
var wallet = await user.CreateWallet(allowAdditional: true);
192+
var wallet = await user.CreateEthereumWallet(allowAdditional: true);
193193
Debug.Log($"[privy.eth.create_additional] Wallet created: {wallet.Address}");
194194
}
195195
catch (Exception ex)

SampleApp/Assets/Scripts/WalletController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private async void OnCreateWalletButtonClick()
6161
if (privyUser != null)
6262
{
6363
bool allowAdditionalWallets = allowAdditionalWalletsToggle.isOn;
64-
IEmbeddedEthereumWallet wallet = await privyUser.CreateWallet(allowAdditionalWallets);
64+
IEmbeddedEthereumWallet wallet = await privyUser.CreateEthereumWallet(allowAdditionalWallets);
6565
Debug.Log("New wallet created with address: " + wallet.Address);
6666

6767
RefreshWalletDropdownOptions();

0 commit comments

Comments
 (0)