Skip to content

Commit

Permalink
feat/anchor_to_cord:refactor anchor code with issueragent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin275 committed Feb 17, 2025
1 parent 47eb565 commit 5c956e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class AnchorCordService implements BlockchainAnchor {
`${process.env.ISSUER_AGENT_BASE_URL}/schema`,
body,
);
return response.data.result;
return response.data;
} catch (err) {
const errorDetails = {
message: err.message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class AnchorCordService implements BlockchainAnchor {
);

this.logger.debug('Credential successfully anchored');
let anchoredResult = anchorHttpResponse.data.result;
let anchoredResult = anchorHttpResponse.data;
this.logger.debug('Credential successfully anchored to Cord:', anchoredResult);
const {
id, issuer, issuanceDate, validUntil: expirationDate, credentialSubject, proof,
Expand Down

0 comments on commit 5c956e5

Please sign in to comment.