From 04b49f85b8d170acaf0d4ec08b4cac3a3ba68e1c Mon Sep 17 00:00:00 2001 From: kuegi <29012906+kuegi@users.noreply.github.com> Date: Sun, 11 Jun 2023 01:48:02 +0200 Subject: [PATCH] Fix help message in transferdomain (#2043) fixes #2042 --- src/masternodes/rpc_accounts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/masternodes/rpc_accounts.cpp b/src/masternodes/rpc_accounts.cpp index 1c41ba9512..37938ee354 100644 --- a/src/masternodes/rpc_accounts.cpp +++ b/src/masternodes/rpc_accounts.cpp @@ -2002,7 +2002,7 @@ UniValue transferdomain(const JSONRPCRequest& request) { { {"address", RPCArg::Type::STR, RPCArg::Optional::NO, "Source address"}, {"amount", RPCArg::Type::STR, RPCArg::Optional::NO, "Amount transfered, the value is amount in amount@token format"}, - {"domain", RPCArg::Type::NUM, RPCArg::Optional::NO, "Domain of source: 1 - DVM, 2 - EVM"}, + {"domain", RPCArg::Type::NUM, RPCArg::Optional::NO, "Domain of source: 2 - DVM, 3 - EVM"}, {"data", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "Optional data"}, }, }, @@ -2010,7 +2010,7 @@ UniValue transferdomain(const JSONRPCRequest& request) { { {"address", RPCArg::Type::STR, RPCArg::Optional::NO, "Destination address"}, {"amount", RPCArg::Type::STR, RPCArg::Optional::NO, "Amount transfered, the value is amount in amount@token format"}, - {"domain", RPCArg::Type::NUM, RPCArg::Optional::NO, "Domain of source: 1 - DVM, 2 - EVM"}, + {"domain", RPCArg::Type::NUM, RPCArg::Optional::NO, "Domain of source: 2 - DVM, 3 - EVM"}, {"data", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "Optional data"}, }, } @@ -2023,8 +2023,8 @@ UniValue transferdomain(const JSONRPCRequest& request) { "\"hash\" (string) The hex-encoded hash of broadcasted transaction\n" }, RPCExamples{ - HelpExampleCli("transferdomain", R"('[{"src":{"address":"", "amount":"1.0@DFI", "domain": 1}, "dst":{"address":"", "amount":"1.0@DFI", "domain": 2}}]')") + - HelpExampleCli("transferdomain", R"('[{"src":{"address":"", "amount":"1.0@DFI", "domain": 2}, "dst":{"address":"", "amount":"1.0@DFI", "domain": 1}}]')") + HelpExampleCli("transferdomain", R"('[{"src":{"address":"", "amount":"1.0@DFI", "domain": 2}, "dst":{"address":"", "amount":"1.0@DFI", "domain": 3}}]')") + + HelpExampleCli("transferdomain", R"('[{"src":{"address":"", "amount":"1.0@DFI", "domain": 3}, "dst":{"address":"", "amount":"1.0@DFI", "domain": 2}}]')") }, }.Check(request);