-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing redeemers in certificate delegation and deregistration #306
Fix missing redeemers in certificate delegation and deregistration #306
Conversation
d258d0f
to
1c1074a
Compare
6da1cee
to
fd5cf2a
Compare
|
fd5cf2a
to
945cb67
Compare
@@ -1,5 +1,3 @@ | |||
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
-> Maybe StakeCredential | ||
deriveStakeCredentialWitness = fmap fromShelleyStakeCredential . \case | ||
ShelleyRelatedCertificate stbEra shelleyCert -> shelleyToBabbageEraConstraints stbEra $ | ||
case shelleyCert of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have this function in cardano-api
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are similar ones, but are not the same: https://github.com/input-output-hk/cardano-api/blob/151eff181cb1782f9db46dbea36d22e8d40f0545/cardano-api/internal/Cardano/Api/Certificate.hs#L670
Should we extract stake creds only for deregistration and delegation like the comment says here, or should we use stake credential witness for the cases when it's available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can leave it as it for now. We should follow the specification and document it here
945cb67
to
28d2f35
Compare
28d2f35
to
99e3ae7
Compare
Changelog
Context
Requires:
cardano-api-8.23.1.0
#320Fixes:
Checklist
See Running tests for more details
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7