Wallet API: corrected testnet/mainnet ordering

This commit is contained in:
stoffu 2018-03-07 13:56:17 +09:00
parent c102c49da5
commit 55a65f3269
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012

View file

@ -541,7 +541,7 @@ struct Wallet
static bool addressValid(const std::string &str, NetworkType nettype);
static bool addressValid(const std::string &str, bool testnet) // deprecated
{
return addressValid(str, testnet ? MAINNET : TESTNET);
return addressValid(str, testnet ? TESTNET : MAINNET);
}
static bool keyValid(const std::string &secret_key_string, const std::string &address_string, bool isViewKey, NetworkType nettype, std::string &error);
static bool keyValid(const std::string &secret_key_string, const std::string &address_string, bool isViewKey, bool testnet, std::string &error) // deprecated