Use elementAt
MODIFY
WalletWasabi/WabiSabi/Backend/Models/WabiSabiProtocolErrorCode.cs
WalletWasabi/WabiSabi/Backend/Models/WabiSabiProtocolErrorCode.cs
@@ -36,6 +36,7 @@ namespace WalletWasabi.WabiSabi.Backend.Models
UneconomicalInput,
VsizeQuotaExceeded,
DeltaNotZero,
- WrongNumberOfCreds
+ WrongNumberOfCreds,
+ CryptoException
}
}

MODIFY
WalletWasabi/WabiSabi/Client/SmartRequestNode.cs
WalletWasabi/WabiSabi/Client/SmartRequestNode.cs
@@ -35,10 +35,10 @@ namespace WalletWasabi.WabiSabi.Client
IEnumerable<Credential> inputVsizeCredentials = InputVsizeCredentialTasks.Select(x => x.Result);
(Credential[] RealAmountCredentials, Credential[] RealVsizeCredentials) result = await bobClient.ReissueCredentialsAsync(
- amounts.First(),
- amounts.Last(),
- vsizes.First(),
- vsizes.Last(),
+ amounts.ElementAtOrDefault(0),
+ amounts.ElementAtOrDefault(1),
+ vsizes.ElementAtOrDefault(0),
+ vsizes.ElementAtOrDefault(1),
inputAmountCredentials,
inputVsizeCredentials,
cancellationToken).ConfigureAwait(false);

Use elementAt