Skip to content

Commit

Permalink
refactor!: set default outbound content type to didcomm v1 (#1314)
Browse files Browse the repository at this point in the history
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 27, 2023
1 parent 254f661 commit 4ab3b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/agent/AgentConfig.ts
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 4ab3b54

Please sign in to comment.