Skip to content

Commit

Permalink
Fixed rider stupidity
Browse files Browse the repository at this point in the history
  • Loading branch information
tiago18c committed May 16, 2021
1 parent 2134a4f commit 48337b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Solnet.Examples/SolletKeyGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Solnet.Examples
{
public class SolletKeyGeneration
{
static void Example()
static void Main(string[] args)
{
var expectedSolletAddresses = new List<string[]>
{
Expand Down Expand Up @@ -38,10 +38,10 @@ static void Example()
Console.WriteLine($"SOLLET publicKey>b58 {account.EncodedPublicKey}");
Console.WriteLine($"SOLLET privateKey>b58 {account.EncodedPrivateKey}");

Debug.Assert(account.EncodedPublicKey == expectedSolletAddresses.get_Item(i)[0] && account.EncodedPrivateKey == expectedSolletAddresses.get_Item(i)[1]);
Debug.Assert(account.EncodedPublicKey == expectedSolletAddresses[i][0] && account.EncodedPrivateKey == expectedSolletAddresses[i][1]);

if (account.EncodedPublicKey != expectedSolletAddresses.get_Item(i)[0] ||
account.EncodedPrivateKey != expectedSolletAddresses.get_Item(i)[1])
if (account.EncodedPublicKey != expectedSolletAddresses[i][0] ||
account.EncodedPrivateKey != expectedSolletAddresses[i][1])
flag = false;
}
if (flag)
Expand Down
3 changes: 1 addition & 2 deletions src/Solnet.KeyStore/SolanaKeyStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
using System.Text;
using Chaos.NaCl;
using Solnet.Util;
using Solnet.Wallet.Account;
using Solnet.Wallet.Key;
using Solnet.Wallet;

namespace Solnet.KeyStore
{
Expand Down

0 comments on commit 48337b9

Please sign in to comment.