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

Fix typos #1212

Merged
merged 1 commit into from
Apr 25, 2022
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
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