Merge pull request #367 from svost/patch-1
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Fri, 14 Apr 2017 09:37:59 +0000 (12:37 +0300)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2017 09:37:59 +0000 (12:37 +0300)
Fix wrong index in sendfrom function

src/rpcwallet.cpp

index 757e7f4..eb302fa 100644 (file)
@@ -704,7 +704,7 @@ Value sendfrom(const Array& params, bool fHelp)
 
     // Parse address
     CScript scriptPubKey;
-    string strAddress = params[0].get_str();
+    string strAddress = params[1].get_str();
 
     CBitcoinAddress address(strAddress);
     if (address.IsValid())