Skip to content

Commit

Permalink
Backport PR 3391
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Dec 10, 2024
1 parent c901828 commit f33eb10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions aries_cloudagent/askar/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import time

# import traceback

from typing import Any, Mapping
from weakref import ref

Expand All @@ -26,8 +25,7 @@
from ..utils.multi_ledger import get_write_ledger_config_for_profile
from ..wallet.base import BaseWallet
from ..wallet.crypto import validate_seed

from .store import AskarStoreConfig, AskarOpenStore
from .store import AskarOpenStore, AskarStoreConfig

LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -118,7 +116,7 @@ def bind_providers(self):
VCHolder,
ClassProvider(
"aries_cloudagent.storage.vc_holder.askar.AskarVCHolder",
ref(self),
ClassProvider.Inject(Profile),
),
)
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import pytest


from ....askar.profile import AskarProfileManager
from ....config.injection_context import InjectionContext

from ..askar import AskarVCHolder
from ..base import VCHolder
from ..vc_record import VCRecord

from . import test_in_memory_vc_holder as in_memory


Expand All @@ -22,6 +20,7 @@ async def make_profile():
"key_derivation_method": "RAW", # much faster than using argon-hashed keys
},
)
profile.context.injector.bind_instance(VCHolder, AskarVCHolder(profile))
return profile


Expand Down

0 comments on commit f33eb10

Please sign in to comment.