Return an interface rather than the real thing
MODIFY
WalletWasabi/WabiSabi/Backend/PostRequests/InputRegistrationHandler.cs
WalletWasabi/WabiSabi/Backend/PostRequests/InputRegistrationHandler.cs
@@ -16,7 +16,7 @@ namespace WalletWasabi.WabiSabi.Backend.PostRequests
{
public static class InputRegistrationHandler
{
- public static async Task<Dictionary<Coin, byte[]>> PreProcessAsync(
+ public static async Task<IDictionary<Coin, byte[]>> PreProcessAsync(
InputsRegistrationRequest request,
Prison prison,
IRPCClient rpc,

MODIFY
WalletWasabi/WabiSabi/Backend/PostRequests/PostRequestHandler.cs
WalletWasabi/WabiSabi/Backend/PostRequests/PostRequestHandler.cs
@@ -39,7 +39,7 @@ namespace WalletWasabi.WabiSabi.Backend.PostRequests
DisposeGuard();
using (RunningTasks.RememberWith(RunningRequests))
{
- Dictionary<Coin, byte[]> coinRoundSignaturePairs = await InputRegistrationHandler.PreProcessAsync(request, Prison, Rpc, Config).ConfigureAwait(false);
+ var coinRoundSignaturePairs = await InputRegistrationHandler.PreProcessAsync(request, Prison, Rpc, Config).ConfigureAwait(false);
return await Arena.RegisterInputAsync(
request.RoundId,

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
@@ -93,7 +93,7 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
public async Task<InputsRegistrationResponse> RegisterInputAsync(
Guid roundId,
- Dictionary<Coin, byte[]> coinRoundSignaturePairs,
+ IDictionary<Coin, byte[]> coinRoundSignaturePairs,
ZeroCredentialsRequest zeroAmountCredentialRequests,
ZeroCredentialsRequest zeroWeightCredentialRequests)
{

Return an interface rather than the real thing