Skip to content

Commit 88a1e9a

Browse files
author
Yuki I
committed
fix: resolve the error related to profile context switching
Signed-off-by: Yuki I <[email protected]>
1 parent 9559dee commit 88a1e9a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

acapy_agent/ledger/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from hashlib import sha256
88
from typing import List, Optional, Sequence, Tuple, Union
99

10+
from ..core.profile import Profile
1011
from ..indy.issuer import DEFAULT_CRED_DEF_TAG, IndyIssuer, IndyIssuerError
1112
from ..messaging.valid import IndyDID
1213
from ..utils import sentinel
@@ -175,7 +176,7 @@ async def rotate_public_did_keypair(self, next_seed: Optional[str] = None) -> No
175176
"""
176177

177178
@abstractmethod
178-
async def get_wallet_public_did(self) -> DIDInfo:
179+
async def get_wallet_public_did(self, profile: Optional[Profile] = None) -> DIDInfo:
179180
"""Fetch the public DID from the wallet."""
180181

181182
@abstractmethod
@@ -193,7 +194,7 @@ async def accept_txn_author_agreement(
193194
"""Save a new record recording the acceptance of the TAA."""
194195

195196
@abstractmethod
196-
async def get_latest_txn_author_acceptance(self):
197+
async def get_latest_txn_author_acceptance(self, profile: Optional[Profile] = None):
197198
"""Look up the latest TAA acceptance."""
198199

199200
def taa_digest(self, version: str, text: str):
@@ -219,6 +220,7 @@ async def txn_submit(
219220
taa_accept: Optional[bool] = None,
220221
sign_did: DIDInfo = sentinel,
221222
write_ledger: bool = True,
223+
profile: Optional[Profile] = None,
222224
) -> str:
223225
"""Write the provided (signed and possibly endorsed) transaction to the ledger."""
224226

@@ -414,6 +416,7 @@ async def send_revoc_reg_entry(
414416
issuer_did: Optional[str] = None,
415417
write_ledger: bool = True,
416418
endorser_did: Optional[str] = None,
419+
profile: Optional[Profile] = None,
417420
) -> dict:
418421
"""Publish a revocation registry entry to the ledger."""
419422

0 commit comments

Comments
 (0)