Skip to content

Commit

Permalink
add 02 to x api sig for wallet connect
Browse files Browse the repository at this point in the history
  • Loading branch information
fudgebucket27 committed Sep 12, 2023
1 parent 9c84304 commit dd9c4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlazeRing/Client/Shared/WalletConnect.razor
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ else
var response = await dappClient.Request<PersonalSign, string>(sessionData?.Topic, request);

Check warning on line 166 in BlazeRing/Client/Shared/WalletConnect.razor

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
unlockStatus = "Unlocking...";
StateHasChanged();
var xApiSig = await BlazeRingHelper.GenerateXApiSigHeader(response, accountInformation.owner, accountInformation.accountId);
var xApiSig = await BlazeRingHelper.GenerateXApiSigHeader(response + "02", accountInformation.owner, accountInformation.accountId);

Check warning on line 169 in BlazeRing/Client/Shared/WalletConnect.razor

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'address' in 'Task<string> BlazeRingHelper.GenerateXApiSigHeader(string signedEcdsaMessage, string address, int accountId)'.
unlockStatus = "Requesting API Key...";
StateHasChanged();
Http.DefaultRequestHeaders.Remove("x-api-sig"); // remove x-api-sig if it exists already
Expand Down

0 comments on commit dd9c4c6

Please sign in to comment.