Skip to content

Commit

Permalink
Fix typos (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorral authored Apr 25, 2022
1 parent e63ae12 commit ef95289
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/masternodes/icxorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Res CICXOrderView::ICXCreateOrder(CICXOrderImpl const & order)
if (order.amountFrom == 0)
return Res::Err("order amountFrom must be greater than 0!");
if (order.amountToFill != order.amountFrom)
return Res::Err("order amountToFill does not equal to amountFrom!");
return Res::Err("order amountToFill is not equal to amountFrom!");
if (order.orderPrice == 0)
return Res::Err("order price must be greater than 0!");
if (order.expiry < CICXOrder::DEFAULT_EXPIRY)
Expand Down
4 changes: 2 additions & 2 deletions src/masternodes/mn_checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class CCustomMetadataParseVisitor : public boost::static_visitor<Res>
ss >> name;
auto var = GovVariable::Create(name);
if (!var) {
return Res::Err("'%s': variable does not registered", name);
return Res::Err("'%s': variable is not registered", name);
}
ss >> *var;
obj.govs.insert(std::move(var));
Expand All @@ -431,7 +431,7 @@ class CCustomMetadataParseVisitor : public boost::static_visitor<Res>
ss >> name;
obj.govVar = GovVariable::Create(name);
if (!obj.govVar) {
return Res::Err("'%s': variable does not registered", name);
return Res::Err("'%s': variable is not registered", name);
}
ss >> *obj.govVar;
ss >> obj.startHeight;
Expand Down
10 changes: 5 additions & 5 deletions src/masternodes/rpc_vault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ UniValue closevault(const JSONRPCRequest& request) {
// decode vaultId
auto vault = pcustomcsview->GetVault(msg.vaultId);
if (!vault)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Vault <%s> does not found", msg.vaultId.GetHex()));
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Vault <%s> not found", msg.vaultId.GetHex()));

if (vault->isUnderLiquidation)
throw JSONRPCError(RPC_TRANSACTION_REJECTED, "Vault is under liquidation.");
Expand Down Expand Up @@ -600,7 +600,7 @@ UniValue updatevault(const JSONRPCRequest& request) {
// decode vaultId
auto storedVault = pcustomcsview->GetVault(vaultId);
if (!storedVault)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Vault <%s> does not found", vaultId.GetHex()));
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Vault <%s> not found", vaultId.GetHex()));

if(storedVault->isUnderLiquidation)
throw JSONRPCError(RPC_TRANSACTION_REJECTED, "Vault is under liquidation.");
Expand Down Expand Up @@ -824,7 +824,7 @@ UniValue withdrawfromvault(const JSONRPCRequest& request) {
// decode vaultId
auto vault = pcustomcsview->GetVault(vaultId);
if (!vault)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Vault <%s> does not found", vaultId.GetHex()));
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Vault <%s> not found", vaultId.GetHex()));

ownerAddress = vault->ownerAddress;
}
Expand Down Expand Up @@ -1274,8 +1274,8 @@ UniValue listvaulthistory(const JSONRPCRequest& request) {
"[{},{}...] (array) Objects with vault history information\n"
},
RPCExamples{
HelpExampleCli("listburnhistory", "84b22eee1964768304e624c416f29a91d78a01dc5e8e12db26bdac0670c67bb2 '{\"maxBlockHeight\":160,\"depth\":10}'")
+ HelpExampleRpc("listburnhistory", "84b22eee1964768304e624c416f29a91d78a01dc5e8e12db26bdac0670c67bb2, '{\"maxBlockHeight\":160,\"depth\":10}'")
HelpExampleCli("listvaulthistory", "84b22eee1964768304e624c416f29a91d78a01dc5e8e12db26bdac0670c67bb2 '{\"maxBlockHeight\":160,\"depth\":10}'")
+ HelpExampleRpc("listvaulthistory", "84b22eee1964768304e624c416f29a91d78a01dc5e8e12db26bdac0670c67bb2, '{\"maxBlockHeight\":160,\"depth\":10}'")
},
}.Check(request);

Expand Down

0 comments on commit ef95289

Please sign in to comment.