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

Relax object structure requirements for creddef to avoid browser error #257

Merged
merged 1 commit into from
May 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Relax object structure requirements for creddef to avoid browser error
Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
  • Loading branch information
esune committed May 28, 2023
commit af0aa6e9e590017f15ce8e1736b136e2784e0bc4
4 changes: 2 additions & 2 deletions server/anchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def format_validator_info(node_data):
else:
data = {"Node_info": {"Name": node}, "error": "unknown error"}
ret.append(data)

return ret


Expand Down Expand Up @@ -686,7 +686,7 @@ def txn_extract_terms(txn_json):

elif txntype == "102":
# CRED_DEF
result["data"] = " ".join(txn["data"]["data"]["primary"]["r"].keys())
result["data"] = " ".join(txn["data"]["data"]["primary"].keys())

return txntype, result, ledger_size

Expand Down