interledgerjs / ilp-plugin-ethereum

Settle Interledger payments with ETH and ERC-20 tokens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return ILP Reject packets instead of throwing

emschwartz opened this issue · comments

This should be fixed, akin to interledgerjs/ilp-plugin-xrp-asym-server#22.

throw new IlpPacket.Errors.AmountTooLargeError('Packet size is too large.', {

throw new IlpPacket.Errors.InsufficientLiquidityError(err.message)

return ilpAndCustomToProtocolData({ ilp: IlpPacket.errorToReject('', err) })