Skip to content

Commit d30b542

Browse files
authored
Fixes Hedera plugin after aiohttp upgrade (#3182)
Signed-off-by: Stephen Curran <swcurran@gmail.com>
1 parent 541c2c3 commit d30b542

3 files changed

Lines changed: 37 additions & 37 deletions

File tree

hedera/integration/poetry.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hedera/integration/tests/helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _auth_get(self, path: str, **kwargs):
7575

7676
kwargs["headers"] = {"Authorization": f"Bearer {self.token}"}
7777

78-
response = requests.get(f"{self.base_url}/{path}", **kwargs)
78+
response = requests.get(f"{self.base_url}{path}", **kwargs)
7979

8080
if response.status_code != 200:
8181
raise Exception("Failed! Bad status code")
@@ -112,7 +112,7 @@ def create_wallet(self, *, persist_token=False):
112112
path = "/multitenancy/wallet"
113113

114114
response = requests.post(
115-
f"{self.base_url}/{path}",
115+
f"{self.base_url}{path}",
116116
json={
117117
"extra_settings": {},
118118
"image_url": "https://aries.ca/images/sample.png",
@@ -212,7 +212,7 @@ def get_active_revocation_registry(
212212
encoded_credential_definition_id = quote_plus(credential_definition_id)
213213

214214
return self._auth_get(
215-
f"anoncreds/revocation/active-registry/{encoded_credential_definition_id}"
215+
f"/anoncreds/revocation/active-registry/{encoded_credential_definition_id}"
216216
)
217217

218218
def issue_credential(
@@ -241,7 +241,7 @@ def issue_credential(
241241

242242
def get_issue_records(self):
243243
"""Get records."""
244-
return self._auth_get("issue-credential-2.0/records")
244+
return self._auth_get("/issue-credential-2.0/records")
245245

246246
def accept_credential_offer(self, cred_ex_id, holder_did=None):
247247
"""Accept credential offer."""

hedera/poetry.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)