mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Fix: Emit error events and return error on pathfind
This commit is contained in:
3
test/fixtures/api/rippled/index.js
vendored
3
test/fixtures/api/rippled/index.js
vendored
@@ -19,7 +19,8 @@ module.exports = {
|
||||
path_find: {
|
||||
generate: require('./path-find'),
|
||||
sendUSD: require('./path-find-send-usd'),
|
||||
XrpToXrp: require('./path-find-xrp-to-xrp')
|
||||
XrpToXrp: require('./path-find-xrp-to-xrp'),
|
||||
srcActNotFound: require('./path-find-srcActNotFound')
|
||||
},
|
||||
tx: {
|
||||
Payment: require('./tx/payment.json'),
|
||||
|
||||
20
test/fixtures/api/rippled/path-find-srcActNotFound.json
vendored
Normal file
20
test/fixtures/api/rippled/path-find-srcActNotFound.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"error": "srcActNotFound",
|
||||
"error_code": 58,
|
||||
"error_message": "Source account not found.",
|
||||
"id": 0,
|
||||
"request": {
|
||||
"command": "path_find",
|
||||
"destination_account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"destination_amount": {
|
||||
"currency": "USD",
|
||||
"issuer": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"value": "5"
|
||||
},
|
||||
"id": 1,
|
||||
"source_account": "rajTAg3hon5Lcu1RxQQPxTgHvqfhc1EaUS",
|
||||
"subcommand": "create"
|
||||
},
|
||||
"status": "error",
|
||||
"type": "response"
|
||||
}
|
||||
Reference in New Issue
Block a user