Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ed's comments #50

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/xrpld/app/tx/detail/MPTokenAuthorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ MPTokenAuthorize::preclaim(PreclaimContext const& ctx)
{
auto const sleMptIssuance = ctx.view.read(
keylet::mptIssuance(ctx.tx[sfMPTokenIssuanceID]));
assert(sleMptIssuance);
if (!sleMptIssuance)
return tefINTERNAL;

Expand Down
4 changes: 2 additions & 2 deletions src/xrpld/rpc/detail/TransactionSign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ checkPayment(
if (!dstAccountID)
return RPC::invalid_field_error("tx_json.Destination");

if (((doPath == false) && params.isMember(jss::build_path)) ||
(params.isMember(jss::build_path) && amount.holds<MPTIssue>()))
if (params.isMember(jss::build_path) &&
((doPath == false) || amount.holds<MPTIssue>()))
return RPC::make_error(
rpcINVALID_PARAMS,
"Field 'build_path' not allowed in this context.");
Expand Down
Loading