-
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
queryStateForBalancedTx: return current treasury value #557
Conversation
d174341
to
bf4e4c9
Compare
bf4e4c9
to
81508ad
Compare
58664b9
to
dcd8d61
Compare
81508ad
to
f2e4c98
Compare
67808d1
to
db0e822
Compare
3db8681
to
9e0063f
Compare
db0e822
to
fe7c6e7
Compare
fe7c6e7
to
22dbb35
Compare
9e0063f
to
0f95294
Compare
0f95294
to
df779d0
Compare
@@ -259,3 +261,9 @@ queryStakeVoteDelegatees :: () | |||
queryStakeVoteDelegatees era stakeCredentials = do | |||
let sbe = conwayEraOnwardsToShelleyBasedEra era | |||
queryExpr $ QueryInEra $ QueryInShelleyBasedEra sbe $ QueryStakeVoteDelegatees stakeCredentials | |||
|
|||
queryAccountState :: () | |||
=> ShelleyBasedEra era |
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.
Are you sure about this witness? If it's in NTC protocol version >= v16
, shouldn't there be ConwayEraOnwards era
?
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.
This should be >=
Conway afaik.
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.
@carbolymer, @Jimbo4350> So then I should return a Maybe TxTreasuryValue
in queryStateForBalancedTx
? (returning None
when the era is before Conway?)
And not include the treasury value if the era is before Conway in transaction build
in CLI?
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.
That would make most sense. Or use Maybe (Featured ConwayEraOnwards era TxTreasuryValue)
to signal when treasury is present.
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.
@carbolymer> did the change in the third commit queryStateForBalancedTx: return Maybe (Featured ConwayEraOnwards era TxTreasuryValue
👍
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.
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.
LGTM but you need to make the change suggested by @carbolymer
11b0310
to
b46f7ba
Compare
9fba00c
to
f339cfc
Compare
Changelog
Context
Required for
transaction build
not to perform a new call to retrieve the treasury's current value in IntersectMBO/cardano-cli#778How to trust this PR
It returns additional data. Existing data is unchanged.
Checklist