Skip to content

Commit

Permalink
refactor!: set default outbound content type to didcomm v1 (openwalle…
Browse files Browse the repository at this point in the history
…t-foundation#1314)

Signed-off-by: Timo Glastra <timo@animo.id>

BREAKING CHANGE:

Agent default outbound content type has been changed to DIDComm V1. If you want to use former behaviour, you can do it so by manually setting `didcommMimeType` in `Agent`'s init config:

```
  const agent = new Agent({ config: { 
     ...
     didCommMimeType: DidCommMimeType.V0
  }, ...  })
```
  • Loading branch information
TimoGlastra committed Feb 28, 2023
1 parent 333b185 commit 10aca95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/agent/AgentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class AgentConfig {
}

public get didCommMimeType() {
return this.initConfig.didCommMimeType ?? DidCommMimeType.V0
return this.initConfig.didCommMimeType ?? DidCommMimeType.V1
}

/**
Expand Down

0 comments on commit 10aca95

Please sign in to comment.