Skip to content

Commit 6cbcd0e

Browse files
committed
fix viewmodel
1 parent 826a695 commit 6cbcd0e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

WriteUpProject/ViewModels/Pages/Page1ViewModel .cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public class Page1ViewModel : ViewModelBase
1616
private string _selectedNetwork = "Main";
1717
private string _fundingTxHex;
1818
private string _vout;
19-
private string _xpub;
20-
private string _derivationPath;
21-
private string _fingerprint;
19+
private string? _xpub;
20+
private string? _derivationPath;
21+
private string? _fingerprint;
2222

2323
public List<string> Networks { get; } = new()
2424
{
@@ -46,19 +46,19 @@ public string Vout
4646
set => SetProperty(ref _vout, value);
4747
}
4848

49-
public string Xpub
49+
public string? Xpub
5050
{
5151
get => _xpub;
5252
set => SetProperty(ref _xpub, value);
5353
}
5454

55-
public string DerivationPath
55+
public string? DerivationPath
5656
{
5757
get => _derivationPath;
5858
set => SetProperty(ref _derivationPath, value);
5959
}
6060

61-
public string Fingerprint
61+
public string? Fingerprint
6262
{
6363
get => _fingerprint;
6464
set => SetProperty(ref _fingerprint, value);
@@ -88,7 +88,7 @@ private void NavigateToPage2()
8888

8989
private bool IsValid(Network network)
9090
{
91-
return ValidatorService.ValidateTxHex(FundingTxHex) && Vout is not null && ValidatorService.ValidateXpub(Xpub, network) && ValidatorService.ValidateDerivationPath(DerivationPath) && ValidatorService.ValidateFingerprint(Fingerprint);
91+
return ValidatorService.ValidateTxHex(FundingTxHex) && Vout is not null;
9292
}
9393
}
9494
}

0 commit comments

Comments
 (0)