Skip to content

Commit

Permalink
bug: Fixed await for login before send transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathanwoodburn committed Feb 20, 2023
1 parent 44ead78 commit a5f70ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BidderGUI/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async void sendbatchbid(string[] domains)
// Send a batch of bid transactions for domains
try
{
unlockwallet();
await unlockwallet();

// Create a HTTP request with the API key
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, "http://"+ipporttextBox.Text);
Expand Down Expand Up @@ -315,7 +315,7 @@ async void sendbatch(string[] domains, string method)
try
{

unlockwallet();
await unlockwallet();

// Create a HTTP request with the API key
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, "http://" + ipporttextBox.Text);
Expand Down Expand Up @@ -368,7 +368,7 @@ async void sendbatch(string[] domains, string method)

}

async void unlockwallet()
async Task unlockwallet()
{
// Unlocking wallet
logtextBox.Text = logtextBox.Text + "Unlocking Wallet using passphrase" + Environment.NewLine;
Expand Down

0 comments on commit a5f70ec

Please sign in to comment.