Skip to content

Commit

Permalink
fix(IDENT-3373): removed unnecessary registration of session
Browse files Browse the repository at this point in the history
Signed-off-by: Andraž Cuderman <[email protected]>
  • Loading branch information
MaticDiba authored and acuderman committed Nov 2, 2021
1 parent 6d4a91c commit 3c8e2f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aries_cloudagent/wallet/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ async def wallet_set_did_endpoint(request: web.BaseRequest):
raise web.HTTPForbidden(reason="No wallet available")

try:
ledger = session.inject_or(BaseLedger)
ledger = context.profile.inject_or(BaseLedger)
await wallet.set_did_endpoint(did, endpoint, ledger, endpoint_type)
except WalletNotFoundError as err:
raise web.HTTPNotFound(reason=err.roll_up) from err
Expand Down Expand Up @@ -531,7 +531,6 @@ async def wallet_rotate_did_keypair(request: web.BaseRequest):
raise web.HTTPForbidden(reason="No wallet available")
try:
did_info: DIDInfo = None
wallet = session.inject_or(BaseWallet)
did_info = await wallet.get_local_did(did)
if did_info.metadata.get("posted", False):
# call from ledger API instead to propagate through ledger NYM transaction
Expand Down

0 comments on commit 3c8e2f9

Please sign in to comment.