diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-09 13:29:11 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-09 13:29:11 +0100 |
commit | 1fea75bca3951d39c0a45faf3e903fcec77f9c4f (patch) | |
tree | 8d582e26a7e583871e0c9c223976e67b93ef2059 /src/wallet-impl/payback.ts | |
parent | 396bb61db70f654599256e512bfec4c008ee8269 (diff) | |
download | wallet-core-1fea75bca3951d39c0a45faf3e903fcec77f9c4f.tar.xz |
throttling / allow non-json requests
Diffstat (limited to 'src/wallet-impl/payback.ts')
-rw-r--r-- | src/wallet-impl/payback.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet-impl/payback.ts b/src/wallet-impl/payback.ts index 56696d771..8cdfbf7ed 100644 --- a/src/wallet-impl/payback.ts +++ b/src/wallet-impl/payback.ts @@ -76,7 +76,7 @@ export async function payback( if (resp.status !== 200) { throw Error(); } - const paybackConfirmation = PaybackConfirmation.checked(resp.responseJson); + const paybackConfirmation = PaybackConfirmation.checked(await resp.json()); if (paybackConfirmation.reserve_pub !== coin.reservePub) { throw Error(`Coin's reserve doesn't match reserve on payback`); } |