-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drop the enum, match type from GetLinkedAccounts
- Loading branch information
1 parent
d8d1432
commit 95673ad
Showing
6 changed files
with
8 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,24 +260,16 @@ | |
// var oldLinkedAccounts = await inAppWalletMain.GetLinkedAccounts(); | ||
// Console.WriteLine($"Old linked accounts: {JsonConvert.SerializeObject(oldLinkedAccounts, Formatting.Indented)}"); | ||
|
||
// External wallet variant | ||
// // External wallet variant | ||
// var externalWallet = await PrivateKeyWallet.Generate(client: client); | ||
// var externalWalletAddress = await externalWallet.GetAddress(); | ||
// var inAppWalletToLink = await InAppWallet.Create(client: client, authProvider: AuthProvider.Siwe, siweSigner: externalWallet); | ||
// _ = await inAppWalletMain.LinkAccount(walletToLink: inAppWalletToLink, chainId: 421614); | ||
|
||
// Email variant | ||
// var linkedEmail = "[email protected]"; | ||
// var inAppWalletToLink = await InAppWallet.Create(client: client, email: linkedEmail); | ||
// await inAppWalletToLink.SendOTP(); | ||
// Console.WriteLine("Enter OTP:"); | ||
// var otp = Console.ReadLine(); | ||
// _ = await inAppWalletMain.LinkAccount(walletToLink: inAppWalletToLink, otp: otp); | ||
|
||
// var linkedAccounts = await inAppWalletMain.GetLinkedAccounts(); | ||
// Console.WriteLine($"Linked accounts: {JsonConvert.SerializeObject(linkedAccounts, Formatting.Indented)}"); | ||
|
||
// var unlinkingResult = await inAppWalletMain.UnlinkAccount(authProviderToUnlink: UnlinkingType.email, email: linkedEmail); | ||
// var unlinkingResult = await inAppWalletMain.UnlinkAccount(linkedType: "siwe", address: externalWalletAddress); | ||
// Console.WriteLine($"Unlinking result: {JsonConvert.SerializeObject(unlinkingResult, Formatting.Indented)}"); | ||
|
||
#endregion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters