Milestone 3: RPC server, ZIP-320 #104

Merged
pitmutt merged 152 commits from milestone3 into master 2024-11-21 15:39:19 +00:00
Showing only changes of commit 5c8a611dfc - Show all commits

View file

@ -148,24 +148,25 @@ isExchangeAddressValid xa =
isRecipientValidGUI :: PrivacyPolicy -> T.Text -> Bool
isRecipientValidGUI p a = do
case (parseAddress a) of
Just a1 ->
let adr = (parseAddress a)
case adr of
Just a ->
case p of
Full -> case a1 of
Full -> case a of
Unified ua -> True
ZcashHaskell.Types.Sapling sa -> True
Sapling sa -> True
_ -> False
Medium -> case a1 of
Medium -> case a of
Unified ua -> True
ZcashHaskell.Types.Sapling sa -> True
Sapling sa -> True
_ -> False
Low -> case a1 of
Low -> case a of
Unified ua -> True
ZcashHaskell.Types.Sapling sa -> True
ZcashHaskell.Types.Transparent ta -> True
Sapling sa -> True
Transparent ta -> True
Exchange ea -> True
None -> case a1 of
ZcashHaskell.Types.Transparent ta -> True
None -> case a of
Transparent ta -> True
Exchange ea -> True
_ -> False