Skip to content

Commit

Permalink
refactor: rename timeInterpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
Unisay committed Apr 7, 2022
1 parent baa40b9 commit 5bf7945
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/shelley/src/Cardano/Wallet/Shelley/Network/Blockfrost.hs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ withNetworkLayer tr net np project k = k NetworkLayer
, stakeDistribution = undefined
, getCachedRewardAccountBalance = undefined
, fetchRewardAccountBalances = undefined
, timeInterpreter = timeInterpreter getGenesisBlockDate
, timeInterpreter = timeInterpreterFromStartTime getGenesisBlockDate
, syncProgress = undefined
}
where
Expand Down Expand Up @@ -224,9 +224,9 @@ withNetworkLayer tr net np project k = k NetworkLayer
epoch <- fromBlockfrostM _epochInfoEpoch
liftEither $ eraByEpoch net epoch

timeInterpreter ::
timeInterpreterFromStartTime ::
StartTime -> TimeInterpreter (ExceptT PastHorizonException IO)
timeInterpreter startTime =
timeInterpreterFromStartTime startTime =
mkTimeInterpreter (MsgTimeInterpreterLog >$< tr) startTime $
pure $ HF.mkInterpreter $ networkSummary net

Expand Down

0 comments on commit 5bf7945

Please sign in to comment.