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

Refactor ScImpl#getTxRecordByContractID as an AnswerService in terms of HederaContracts #76

Closed
tinker-michaelj opened this issue May 12, 2020 · 0 comments · Fixed by #908
Assignees

Comments

@tinker-michaelj
Copy link
Collaborator

Given an injected instance of HederaContracts, the query-answering logic for a valid ANSWER_ONLY version of ContractGetRecords should amount to:

  1. Extract the target contract from the query.
  2. Obtain a HederaAccount via contracts.get(id), catching any exception.
  3. Provide a response from the HederaAccount#records/exception.
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 a pull request may close this issue.

1 participant