standartInputWriter -> standardInputWriter
MODIFY
WalletWasabi.Tests/UnitTests/Hwi/HwiProcessBridgeMock.cs
WalletWasabi.Tests/UnitTests/Hwi/HwiProcessBridgeMock.cs
@@ -20,7 +20,7 @@ namespace WalletWasabi.Tests.UnitTests.Hwi
public HardwareWalletModels Model { get; }
- public Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standartInputWriter = null)
+ public Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standardInputWriter = null)
{
if (openConsole)
{

MODIFY
WalletWasabi/Hwi/HwiClient.cs
WalletWasabi/Hwi/HwiClient.cs
@@ -40,9 +40,9 @@ namespace WalletWasabi.Hwi
#region Commands
- private async Task<string> SendCommandAsync(IEnumerable<HwiOption> options, HwiCommands? command, string commandArguments, bool openConsole, CancellationToken cancel, bool isRecursion = false, Action<StreamWriter> standartInputWriter = null)
+ private async Task<string> SendCommandAsync(IEnumerable<HwiOption> options, HwiCommands? command, string commandArguments, bool openConsole, CancellationToken cancel, bool isRecursion = false, Action<StreamWriter> standardInputWriter = null)
{
- if (standartInputWriter is { } && !options.Contains(HwiOption.StdIn))
+ if (standardInputWriter is { } && !options.Contains(HwiOption.StdIn))
{
var optList = options.ToList();
optList.Add(HwiOption.StdIn);
@@ -53,7 +53,7 @@ namespace WalletWasabi.Hwi
try
{
- (string responseString, int exitCode) = await Bridge.SendCommandAsync(arguments, openConsole, cancel, standartInputWriter).ConfigureAwait(false);
+ (string responseString, int exitCode) = await Bridge.SendCommandAsync(arguments, openConsole, cancel, standardInputWriter).ConfigureAwait(false);
ThrowIfError(responseString, options, arguments, exitCode);
@@ -90,7 +90,7 @@ namespace WalletWasabi.Hwi
{
// Trezor only accepts KeyPath 84'/1' on TestNet from v2.3.1. We fake that we are on MainNet to ensure compatibility.
string fixedArguments = HwiParser.ToArgumentString(Network.Main, options, command, commandArguments);
- (string responseString, int exitCode) = await Bridge.SendCommandAsync(fixedArguments, openConsole, cancel, standartInputWriter).ConfigureAwait(false);
+ (string responseString, int exitCode) = await Bridge.SendCommandAsync(fixedArguments, openConsole, cancel, standardInputWriter).ConfigureAwait(false);
ThrowIfError(responseString, options, fixedArguments, exitCode);
@@ -189,7 +189,7 @@ namespace WalletWasabi.Hwi
commandArguments: "",
openConsole: false,
cancel,
- standartInputWriter: (inputWriter) =>
+ standardInputWriter: (inputWriter) =>
{
if (!string.IsNullOrEmpty(psbtString))
{

MODIFY
WalletWasabi/Hwi/ProcessBridge/HwiProcessBridge.cs
WalletWasabi/Hwi/ProcessBridge/HwiProcessBridge.cs
@@ -19,9 +19,9 @@ namespace WalletWasabi.Hwi.ProcessBridge
{
}
- public new async Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standartInputWriter = null)
+ public new async Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standardInputWriter = null)
{
- var (responseString, exitCode) = await base.SendCommandAsync(arguments, openConsole, cancel, standartInputWriter).ConfigureAwait(false);
+ var (responseString, exitCode) = await base.SendCommandAsync(arguments, openConsole, cancel, standardInputWriter).ConfigureAwait(false);
string modifiedResponseString;

MODIFY
WalletWasabi/Microservices/IProcessBridge.cs
WalletWasabi/Microservices/IProcessBridge.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Microservices
{
public interface IProcessBridge
{
- Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standartInputWriter = null);
+ Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standardInputWriter = null);
Process Start(string arguments, bool openConsole, bool redirectStandardInput);
}

MODIFY
WalletWasabi/Microservices/ProcessBridge.cs
WalletWasabi/Microservices/ProcessBridge.cs
@@ -78,15 +78,15 @@ namespace WalletWasabi.Microservices
}
}
- public async Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standartInputWriter = null)
+ public async Task<(string response, int exitCode)> SendCommandAsync(string arguments, bool openConsole, CancellationToken cancel, Action<StreamWriter> standardInputWriter = null)
{
int exitCode;
- bool redirectStandardInput = standartInputWriter is { };
+ bool redirectStandardInput = standardInputWriter is { };
using var process = Start(arguments, openConsole, redirectStandardInput);
if (redirectStandardInput)
{
- standartInputWriter(process.StandardInput);
+ standardInputWriter(process.StandardInput);
}
await process.WaitForExitAsync(cancel).ConfigureAwait(false);

standartInputWriter -> standardInputWriter