-
Notifications
You must be signed in to change notification settings - Fork 721
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
Better error message for query utxo #2957
Conversation
a4abbce
to
9aa0f3c
Compare
|
e558683
to
9bf901e
Compare
93a57cc
to
ed8ba37
Compare
ed8ba37
to
e9afcaa
Compare
e9afcaa
to
6f82ed9
Compare
@@ -161,6 +164,13 @@ data LocalNodeConnectInfo mode = | |||
localNodeSocketPath :: FilePath | |||
} | |||
|
|||
type MinNodeToClientVersion = NodeToClientVersion | |||
|
|||
data QueryError |
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 should implement an Error
instance for this,
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.
Nice, I have some thoughts on another way we can go about this.
cardano-api/src/Cardano/Api/IPC.hs
Outdated
queryNodeLocalState = queryNodeLocalStateWithVersion NodeToClientV_1 | ||
|
||
queryNodeLocalStateWithVersion :: forall mode result. | ||
NodeToClientVersion |
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.
Indent?
Also, is there a query that will return available queries for a given node version? Or maybe we can define a function in cardano-api
like NodeToClientVersion -> ([QueryInMode mode result], [QueryInEra era])
that we can use to determine what is available rather than adding an additional function where you have to manually specify the required node version.
b80e25f
to
f7d8073
Compare
f7d8073
to
63b1919
Compare
63b1919
to
c755c85
Compare
Re-implemented in #4788 |
Fixes #2954