From b1b8601578d46e1c27176c23f110ccdf8dd7ba9c Mon Sep 17 00:00:00 2001 From: Mauve Signweaver Date: Thu, 26 Jan 2023 15:35:07 -0500 Subject: [PATCH] fix: ipfs-http-client should lowercase key type when submitting to kubo. Fixes #4272 --- packages/ipfs-http-client/src/key/gen.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ipfs-http-client/src/key/gen.js b/packages/ipfs-http-client/src/key/gen.js index 766a2d26b6..20bde91710 100644 --- a/packages/ipfs-http-client/src/key/gen.js +++ b/packages/ipfs-http-client/src/key/gen.js @@ -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({