From 34b0a88b860a9c4841f9edadbe39b3dab8ac61d2 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 9 Jun 2012 15:23:44 -0700 Subject: [PATCH] Fix create on send. --- src/RPCServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RPCServer.cpp b/src/RPCServer.cpp index ca9d9fa8ca..c098ec5078 100644 --- a/src/RPCServer.cpp +++ b/src/RPCServer.cpp @@ -1261,9 +1261,9 @@ Json::Value RPCServer::doSend(Json::Value& params) } else { - AccountState::pointer asDst = mNetOps->getAccountState(uLedger, naSrcAccountID); + AccountState::pointer asDst = mNetOps->getAccountState(uLedger, naDstAccountID); bool bCreate = !asDst; - STAmount saFee = bCreate ? theConfig.FEE_DEFAULT : theConfig.FEE_ACCOUNT_CREATE; + STAmount saFee = bCreate ? theConfig.FEE_ACCOUNT_CREATE : theConfig.FEE_DEFAULT; NewcoinAddress naMasterGenerator; NewcoinAddress naAccountPublic;