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 <[email protected]>

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 authored 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
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 4ab3b54

Please sign in to comment.