mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
deposit_authorized gives error if source not in ledger (#2640)
This commit is contained in:
@@ -197,13 +197,23 @@ public:
|
||||
"json", "deposit_authorized", args.toStyledString())};
|
||||
verifyErr (result, "lgrNotFound", "ledgerNotFound");
|
||||
}
|
||||
{
|
||||
// alice is not yet funded.
|
||||
Json::Value args {depositAuthArgs (alice, becky)};
|
||||
Json::Value const result {env.rpc (
|
||||
"json", "deposit_authorized", args.toStyledString())};
|
||||
verifyErr (result, "srcActNotFound",
|
||||
"Source account not found.");
|
||||
}
|
||||
env.fund(XRP(1000), alice);
|
||||
env.close();
|
||||
{
|
||||
// becky is not yet funded.
|
||||
Json::Value args {depositAuthArgs (alice, becky)};
|
||||
Json::Value const result {env.rpc (
|
||||
"json", "deposit_authorized", args.toStyledString())};
|
||||
verifyErr (result, "dstActMissing",
|
||||
"Destination account does not exist.");
|
||||
verifyErr (result, "dstActNotFound",
|
||||
"Destination account not found.");
|
||||
}
|
||||
env.fund(XRP(1000), becky);
|
||||
env.close();
|
||||
|
||||
Reference in New Issue
Block a user