Skip to content
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

Add Verifiers to cw-data #188

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

emmanueldenloye
Copy link
Contributor

Now txHandler & txsHandler returns a TxDetail with list of verifiers (in json) to an api consumer.

Now txHandler & txsHandler returns a TxDetail with list of verifiers
(in json) to an api consumer.
@@ -318,6 +318,7 @@ mkTransaction b (tx,txo) = Transaction
, _tx_continuation = PgJSONB <$> _toutContinuation txo
, _tx_txid = fromIntegral <$> _toutTxId txo
, _tx_numEvents = Just $ fromIntegral $ length $ _toutEvents txo
, _tx_verifiers = PgJSONB <$> tx ^? to (CW._transaction_cmdStr) . key "verifiers"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that really where the verifiers field appears?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests I've added answer this question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants