Skip to content

Commit

Permalink
fix OOB proofs
Browse files Browse the repository at this point in the history
Signed-off-by: Clécio Varjão <[email protected]>
  • Loading branch information
cvarjao committed Jul 18, 2024
1 parent 9bc0682 commit 370dafe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ invitation_url.txt
invitation.json
invite-acm.json
tmp/
*.json
/*.json
.DS_Store
6 changes: 3 additions & 3 deletions src/AgentCredo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,12 @@ export class AgentCredo implements AriesAgent {
this.agent = await createAgent(this.config, this.ledgers, this.logger);
}
public async shutdown() {
await this.agent.mediationRecipient.stopMessagePickup();
await this.agent.mediationRecipient?.stopMessagePickup();
await this.agent.shutdown();
for (const t of this.agent.outboundTransports) {
for (const t of this.agent?.outboundTransports) {
await t.stop();
}
for (const t of this.agent.inboundTransports) {
for (const t of this.agent?.inboundTransports) {
await t.stop();
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/AgentTraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ export class AgentTraction implements AriesAgent {
})
}
})
/*
.catch(reason => {
//TODO: due to a bug, we consider 404 as sucessful presentation
if (reason.response.status !== 404){
throw reason
}
})
*/
}
async clearAllRecords() {
let records: any[] | undefined = undefined
Expand Down Expand Up @@ -178,7 +180,7 @@ export class AgentTraction implements AriesAgent {
async sendOOBConnectionlessProofRequest(builder: ProofRequestBuilder): Promise<any | undefined> {
const proofRequest = builder.build()
const proof = await this.axios.post(`${this.config.base_url}/present-proof/create-request`,{
"auto_remove": true,
"auto_remove": false,
"auto_verify": true,
"comment": "string",
"trace": false,
Expand Down

0 comments on commit 370dafe

Please sign in to comment.