Skip to content

Commit

Permalink
fix: pass mixdepth prop as number in request body (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Aug 11, 2022
1 parent 27e1a10 commit 155f9bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libs/JmWalletApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ const postDirectSend = async ({ token, signal, walletName }: WalletRequestContex
return await fetch(`${basePath()}/v1/wallet/${encodeURIComponent(walletName)}/taker/direct-send`, {
method: 'POST',
headers: { ...Authorization(token) },
// docs say "integer", but "midxdepth" must serialize as string!
body: JSON.stringify({ ...req, mixdepth: String(req.mixdepth) }),
body: JSON.stringify(req),
signal,
})
}
Expand All @@ -253,8 +252,7 @@ const postCoinjoin = async ({ token, signal, walletName }: WalletRequestContext,
return await fetch(`${basePath()}/v1/wallet/${encodeURIComponent(walletName)}/taker/coinjoin`, {
method: 'POST',
headers: { ...Authorization(token) },
// docs say "integer", but "midxdepth" must serialize as string!
body: JSON.stringify({ ...req, mixdepth: String(req.mixdepth) }),
body: JSON.stringify(req),
signal,
})
}
Expand Down

0 comments on commit 155f9bd

Please sign in to comment.