-
Notifications
You must be signed in to change notification settings - Fork 23
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 deregistration #268
Fix missing redeemers in certificate deregistration #268
Conversation
60447b4
to
27c9133
Compare
27c9133
to
dfbae6f
Compare
dfbae6f
to
2fa9f38
Compare
Just . Ledger.coerceKeyRole . Ledger.KeyHashObj $ Ledger.ppId poolParams | ||
Ledger.RetirePoolTxCert poolId _ -> | ||
Just . Ledger.coerceKeyRole $ Ledger.KeyHashObj poolId | ||
_ -> Nothing |
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.
Let's handle all of the certificates for completeness
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.
follow up: #277
Ledger.UnRegTxCert sCred -> Just sCred | ||
Ledger.DelegStakeTxCert sCred _ -> Just sCred | ||
Ledger.RegPoolTxCert poolParams -> | ||
Just . Ledger.coerceKeyRole . Ledger.KeyHashObj $ Ledger.ppId poolParams |
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 need to think about our StakeCredential
type because we are coercing from the keyrole Ledger.StakePool
. We really should try to avoid breaking the ledger interface even if we think it looks "ok" to do so. The key role at the moment has no semantic meaning, it's just a tag, but we don't want to get bitten unexpectedly by this in the future because it's not guaranteed that this won't change.
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.
follow up: #341
Changelog
Context
Part of:
Prerequisite of:
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