Skip to content

Commit

Permalink
fix: ipfs-http-client should lowercase key type when submitting to ku…
Browse files Browse the repository at this point in the history
…bo. Fixes ipfs#4272
  • Loading branch information
Mauve Signweaver authored and Mauve Signweaver committed Jan 26, 2023
1 parent 3bcabe3 commit b1b8601
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ipfs-http-client/src/key/gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const createGen = configure(api => {
async function gen (name, options) {
const opts = options ?? { type: 'Ed25519' }

opts.type = opts.type.toLowerCase()

const res = await api.post('key/gen', {
signal: opts.signal,
searchParams: toUrlSearchParams({
Expand Down

0 comments on commit b1b8601

Please sign in to comment.