Fix ZeroAmountCredentials2 to ZeroVsizeCredentials
MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
@@ -493,14 +493,14 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
var commitRealAmountCredentialResponse = round.AmountCredentialIssuer.PrepareResponse(request.RealAmountCredentialRequests);
var commitRealVsizeCredentialResponse = round.VsizeCredentialIssuer.PrepareResponse(request.RealVsizeCredentialRequests);
- var commitZeroAmountCredentialResponse1 = round.AmountCredentialIssuer.PrepareResponse(request.ZeroAmountCredentialRequests1);
- var commitZeroAmountCredentialResponse2 = round.AmountCredentialIssuer.PrepareResponse(request.ZeroAmountCredentialRequests2);
+ var commitZeroAmountCredentialResponse = round.AmountCredentialIssuer.PrepareResponse(request.ZeroAmountCredentialRequests);
+ var commitZeroVsizeCredentialResponse = round.VsizeCredentialIssuer.PrepareResponse(request.ZeroVsizeCredentialsRequests);
return new(
commitRealAmountCredentialResponse.Commit(),
commitRealVsizeCredentialResponse.Commit(),
- commitZeroAmountCredentialResponse1.Commit(),
- commitZeroAmountCredentialResponse2.Commit()
+ commitZeroAmountCredentialResponse.Commit(),
+ commitZeroVsizeCredentialResponse.Commit()
);
}
}

MODIFY
WalletWasabi/WabiSabi/Client/ArenaClient.cs
WalletWasabi/WabiSabi/Client/ArenaClient.cs
@@ -129,21 +129,21 @@ namespace WalletWasabi.WabiSabi.Client
new[] { value1, value2 },
amountCredentialsToPresent);
- var zeroAmountCredentialRequestData1 = AmountCredentialClient.CreateRequestForZeroAmount();
- var zeroAmountCredentialRequestData2 = AmountCredentialClient.CreateRequestForZeroAmount();
+ var zeroAmountCredentialRequestData = AmountCredentialClient.CreateRequestForZeroAmount();
+ var zeroVsizeCredentialRequestData = VsizeCredentialClient.CreateRequestForZeroAmount();
var reissuanceResponse = await RequestHandler.ReissueCredentialAsync(
new ReissueCredentialRequest(
roundId,
realAmountCredentialRequest,
realVsizeCredentialRequest,
- zeroAmountCredentialRequestData1.CredentialsRequest,
- zeroAmountCredentialRequestData2.CredentialsRequest)).ConfigureAwait(false);
+ zeroAmountCredentialRequestData.CredentialsRequest,
+ zeroVsizeCredentialRequestData.CredentialsRequest)).ConfigureAwait(false);
AmountCredentialClient.HandleResponse(reissuanceResponse.RealAmountCredentials, realAmountCredentialResponseValidation);
VsizeCredentialClient.HandleResponse(reissuanceResponse.RealVsizeCredentials, realVsizeCredentialResponseValidation);
- AmountCredentialClient.HandleResponse(reissuanceResponse.ZeroAmountCredentials1, zeroAmountCredentialRequestData1.CredentialsResponseValidation);
- AmountCredentialClient.HandleResponse(reissuanceResponse.ZeroAmountCredentials2, zeroAmountCredentialRequestData2.CredentialsResponseValidation);
+ AmountCredentialClient.HandleResponse(reissuanceResponse.ZeroAmountCredentials, zeroAmountCredentialRequestData.CredentialsResponseValidation);
+ VsizeCredentialClient.HandleResponse(reissuanceResponse.ZeroVsizeCredentials, zeroVsizeCredentialRequestData.CredentialsResponseValidation);
}
public async Task<bool> ConfirmConnectionAsync(Guid roundId, Guid aliceId, IEnumerable<long> inputsRegistrationVsize, IEnumerable<Credential> amountCredentialsToPresent, IEnumerable<Money> newAmount)

MODIFY
WalletWasabi/WabiSabi/Models/ReissueCredentialRequest.cs
WalletWasabi/WabiSabi/Models/ReissueCredentialRequest.cs
@@ -7,7 +7,7 @@ namespace WalletWasabi.WabiSabi.Models
Guid RoundId,
RealCredentialsRequest RealAmountCredentialRequests,
RealCredentialsRequest RealVsizeCredentialRequests,
- ZeroCredentialsRequest ZeroAmountCredentialRequests1,
- ZeroCredentialsRequest ZeroAmountCredentialRequests2
+ ZeroCredentialsRequest ZeroAmountCredentialRequests,
+ ZeroCredentialsRequest ZeroVsizeCredentialsRequests
);
}

MODIFY
WalletWasabi/WabiSabi/Models/ReissueCredentialResponse.cs
WalletWasabi/WabiSabi/Models/ReissueCredentialResponse.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.WabiSabi.Models
public record ReissueCredentialResponse(
CredentialsResponse RealAmountCredentials,
CredentialsResponse RealVsizeCredentials,
- CredentialsResponse ZeroAmountCredentials1,
- CredentialsResponse ZeroAmountCredentials2
+ CredentialsResponse ZeroAmountCredentials,
+ CredentialsResponse ZeroVsizeCredentials
);
}

Fix ZeroAmountCredentials2 to ZeroVsizeCredentials