validate after retry routine
This commit is contained in:
parent
8616e1fdef
commit
89f15c8197
1 changed files with 8 additions and 0 deletions
|
|
@ -996,6 +996,14 @@ const sendSpontaneousPayment = async (to, amount, memo, feeLimit) => {
|
|||
v => !Schema.isOrderResponse(v)
|
||||
)
|
||||
|
||||
if (!Schema.isOrderResponse(encryptedOrderRes)) {
|
||||
const e = TypeError(
|
||||
`Expected OrderResponse got: ${typeof encryptedOrderRes}`
|
||||
)
|
||||
logger.error(e)
|
||||
throw e
|
||||
}
|
||||
|
||||
/** @type {import('shock-common').Schema.OrderResponse} */
|
||||
const orderResponse = {
|
||||
response: await SEA.decrypt(encryptedOrderRes.response, ourSecret),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue