Fix bug for parsing YWallet memos

This commit is contained in:
Rene Vergara 2023-05-11 16:46:47 -05:00
parent 8e05df0727
commit 849f1d9120
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
1 changed files with 2 additions and 3 deletions

View File

@ -119,6 +119,7 @@ type Parser = Parsec Void T.Text
pSession :: Parser MemoToken
pSession = do
optional spaceChar
string "ZGO"
pay <- optional $ char 'p'
string "::"
@ -142,9 +143,7 @@ pSaplingAddress = do
pMsg :: Parser MemoToken
pMsg = do
Msg . T.pack <$>
some
(alphaNumChar <|> punctuationChar <|> symbolChar <|>
charCategory OtherSymbol)
some (alphaNumChar <|> punctuationChar <|> charCategory OtherSymbol)
pMemo :: Parser MemoToken
pMemo = do