Skip to content

Commit

Permalink
fix: don't throw error for drep state in case of Maestro/BF provider
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhxyz committed Jan 16, 2025
1 parent 21d7e55 commit 215885e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GeniusYield/GYConfig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ withCfgProviders
, MaestroApi.maestroSubmitTx (Just True == turboSubmit) maestroApiEnv
, MaestroApi.maestroAwaitTxConfirmed maestroApiEnv
, MaestroApi.maestroStakeAddressInfo maestroApiEnv
, error "Maestro does not support DRep state"
, error "Maestro does not support DReps state"
, const (pure Nothing) -- Maestro does not support DRep state
, const (pure mempty) -- Maestro does not support DReps state
, MaestroApi.maestroStakePools maestroApiEnv
)
GYBlockfrost (Confidential key) -> do
Expand All @@ -216,8 +216,8 @@ withCfgProviders
, Blockfrost.blockfrostSubmitTx proj
, Blockfrost.blockfrostAwaitTxConfirmed proj
, Blockfrost.blockfrostStakeAddressInfo proj
, error "Blockfrost provider does not support DRep state"
, error "Blockfrost provider does not support DReps state"
, const (pure Nothing) -- "Blockfrost provider does not support DRep state"
, const (pure mempty) -- "Blockfrost provider does not support DReps state"
, Blockfrost.blockfrostStakePools proj
)

Expand Down

0 comments on commit 215885e

Please sign in to comment.