From 83e70e0e3befa2c89cefdb69b0fcc67b43a471ac Mon Sep 17 00:00:00 2001 From: LSJI07 <39772657+lsji07@users.noreply.github.com> Date: Mon, 29 May 2023 00:09:23 +0100 Subject: [PATCH 1/2] Update rewards.cpp Fixed typo of missing character. --- src/rpc/rewards.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/rewards.cpp b/src/rpc/rewards.cpp index 5504c547ec..27518c097f 100644 --- a/src/rpc/rewards.cpp +++ b/src/rpc/rewards.cpp @@ -77,7 +77,7 @@ UniValue requestsnapshot(const JSONRPCRequest& request) { "\nArguments:\n" "1. \"asset_name\" (string, required) The asset name for which the snapshot will be taken\n" - "2. \"block_height\" (number, required) The block height at which the snapshot will be take\n" + "2. \"block_height\" (number, required) The block height at which the snapshot will be taken\n" "\nResult:\n" "{\n" From eb83858bbb26da56d52b54aa43c41e3dff39ab55 Mon Sep 17 00:00:00 2001 From: LSJI07 <39772657+lsji07@users.noreply.github.com> Date: Fri, 2 Jun 2023 15:40:53 +0100 Subject: [PATCH 2/2] Update rewards.cpp Additional typos. --- src/rpc/rewards.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rpc/rewards.cpp b/src/rpc/rewards.cpp index 27518c097f..685f5ed9b4 100644 --- a/src/rpc/rewards.cpp +++ b/src/rpc/rewards.cpp @@ -103,7 +103,7 @@ UniValue requestsnapshot(const JSONRPCRequest& request) { throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid asset_name: Please use a valid asset name")); if (ownershipAssetType == AssetType::UNIQUE || ownershipAssetType == AssetType::OWNER || ownershipAssetType == AssetType::MSGCHANNEL) - throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid asset_name: OWNER, UNQIUE, MSGCHANNEL assets are not allowed for this call")); + throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid asset_name: OWNER, UNIQUE, MSGCHANNEL assets are not allowed for this call")); auto currentActiveAssetCache = GetCurrentAssetCache(); if (!currentActiveAssetCache) @@ -246,7 +246,7 @@ UniValue cancelsnapshotrequest(const JSONRPCRequest& request) { "\nArguments:\n" "1. \"asset_name\" (string, required) The asset name for which the snapshot will be taken\n" - "2. \"block_height\" (number, required) The block height at which the snapshot will be take\n" + "2. \"block_height\" (number, required) The block height at which the snapshot will be taken\n" "\nResult:\n" "{\n" @@ -367,7 +367,7 @@ UniValue distributereward(const JSONRPCRequest& request) { throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid asset_name: Please use a valid asset name")); if (ownershipAssetType == AssetType::UNIQUE || ownershipAssetType == AssetType::OWNER || ownershipAssetType == AssetType::MSGCHANNEL) - throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid asset_name: OWNER, UNQIUE, MSGCHANNEL assets are not allowed for this call")); + throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid asset_name: OWNER, UNIQUE, MSGCHANNEL assets are not allowed for this call")); if (snapshot_height > chainActive.Height()) { throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid snapshot_height: block height should be less than or equal to the current active chain height")); @@ -378,7 +378,7 @@ UniValue distributereward(const JSONRPCRequest& request) { throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid distribution_asset_name: Please use a valid asset name")); if (distributionAssetType == AssetType::UNIQUE || distributionAssetType == AssetType::OWNER || distributionAssetType == AssetType::MSGCHANNEL) - throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid distribution_asset_name: OWNER, UNQIUE, MSGCHANNEL assets are not allowed for this call")); + throw JSONRPCError(RPC_INVALID_PARAMETER, std::string("Invalid distribution_asset_name: OWNER, UNIQUE, MSGCHANNEL assets are not allowed for this call")); std::pair errorPair; if (!VerifyWalletHasAsset(distribution_asset_name + OWNER_TAG, errorPair))