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

Fix AttributeError #1516

Merged
merged 1 commit into from
Nov 24, 2021
Merged

Fix AttributeError #1516

merged 1 commit into from
Nov 24, 2021

Conversation

gorgsenegger
Copy link
Contributor

Follow-up error after PR 1515. When calling /credential-definitions/{cred_def_id}/write_record in the Swagger UI, the call results in:

AttributeError: 'IndySdkLedger' object has no attribute 'add_cred_def_non_secrets_record'

The code attempts to call add_cred_def_non_secrets_record on the ledger instance which doesn't have such a method. Instead, the actual method is in routes.py itself and should just be called there.

Signed-off-by: Tim Gorgs <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Nov 24, 2021

Codecov Report

Merging #1516 (4628fec) into main (da8aeed) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #1516   +/-   ##
=======================================
  Coverage   95.79%   95.79%           
=======================================
  Files         509      509           
  Lines       30985    30985           
=======================================
  Hits        29683    29683           
  Misses       1302     1302           

@ianco ianco merged commit f52be0c into openwallet-foundation:main Nov 24, 2021
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