From a5f70eca064ec4deb584924a9ef32ac554e7268c Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 21 Feb 2023 10:24:31 +1100 Subject: [PATCH] bug: Fixed await for login before send transaction --- BidderGUI/Form1.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BidderGUI/Form1.cs b/BidderGUI/Form1.cs index 4f158aa..ac0b748 100644 --- a/BidderGUI/Form1.cs +++ b/BidderGUI/Form1.cs @@ -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); @@ -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); @@ -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;