Skip to content

Commit

Permalink
Merge pull request #398 from geniusyield/fix-bf-maestro-drep
Browse files Browse the repository at this point in the history
fix: don't throw error for drep state query in case of remote providers
  • Loading branch information
sourabhxyz authored Jan 16, 2025
2 parents 21d7e55 + c5a8b21 commit 6cc7335
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.10.0

* Support of extended keys in `runGYTxMonadIO`.
* Don't throw error for querying DRep state in case of Maestro/BF provider.

## 0.9.0

* When spending an input, datum is now optional since it is not required to be specified in case it's inlined or not needed by associated Plutus script.
Expand Down
2 changes: 1 addition & 1 deletion atlas-cardano.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.8
name: atlas-cardano
version: 0.9.0
version: 0.10.0
synopsis: Application backend for Plutus smart contracts on Cardano
description:
Atlas is an all-in-one, Haskell-native application backend for writing off-chain code for on-chain Plutus smart contracts.
Expand Down
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 6cc7335

Please sign in to comment.