From 230693fd2d182216c3255248113042ea790b5187 Mon Sep 17 00:00:00 2001 From: svost Date: Fri, 14 Apr 2017 09:35:44 +0300 Subject: [PATCH] Fix wrong index in sendfrom function --- src/rpcwallet.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 757e7f4..eb302fa 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -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()) -- 1.7.1