mirror of
https://github.com/FiloSpaTeam/plutus-pioneer-program.git
synced 2024-12-22 05:21:59 +01:00
fixed regular expression in oracle-client
This commit is contained in:
parent
724f9cb7db
commit
01ed74dc2d
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ getExchangeRate = runReq defaultHttpConfig $ do
|
|||
NoReqBody
|
||||
bsResponse
|
||||
mempty
|
||||
let priceRegex = "priceValue___11gHJ\">\\$([\\.0-9]*)" :: ByteString
|
||||
let priceRegex = "priceValue___11gHJ \">\\$([\\.0-9]*)" :: ByteString
|
||||
(_, _, _, [bs]) = responseBody v =~ priceRegex :: (ByteString, ByteString, ByteString, [ByteString])
|
||||
d = read $ unpack bs :: Double
|
||||
x = round $ 1_000_000 * d
|
||||
|
|
Loading…
Reference in a new issue