RPC Server #103
2 changed files with 13 additions and 28 deletions
|
@ -148,27 +148,12 @@ isExchangeAddressValid xa =
|
||||||
|
|
||||||
isRecipientValidGUI :: PrivacyPolicy -> T.Text -> Bool
|
isRecipientValidGUI :: PrivacyPolicy -> T.Text -> Bool
|
||||||
isRecipientValidGUI p a = do
|
isRecipientValidGUI p a = do
|
||||||
let adr = (parseAddress a)
|
let adr = parseAddress a
|
||||||
case adr of
|
|
||||||
Just a ->
|
|
||||||
case p of
|
case p of
|
||||||
Full -> case a of
|
Full -> True
|
||||||
Unified ua -> True
|
Medium -> True
|
||||||
Sapling sa -> True
|
Low -> False
|
||||||
_ -> False
|
None -> False
|
||||||
Medium -> case a of
|
|
||||||
Unified ua -> True
|
|
||||||
Sapling sa -> True
|
|
||||||
_ -> False
|
|
||||||
Low -> case a of
|
|
||||||
Unified ua -> True
|
|
||||||
Sapling sa -> True
|
|
||||||
Transparent ta -> True
|
|
||||||
Exchange ea -> True
|
|
||||||
None -> case a of
|
|
||||||
Transparent ta -> True
|
|
||||||
Exchange ea -> True
|
|
||||||
_ -> False
|
|
||||||
|
|
||||||
isZecAddressValid :: T.Text -> Bool
|
isZecAddressValid :: T.Text -> Bool
|
||||||
isZecAddressValid a = do
|
isZecAddressValid a = do
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7965dc38c48da348f503a52ee10042fffc43f32c
|
Subproject commit 12296026a0ebb9a5afe0904b251c5d31080eab18
|
Loading…
Reference in a new issue