Update tests for account deprecation

This commit is contained in:
Jack Grigg
2016-10-06 17:27:21 -04:00
parent 3c31eb24d3
commit b6f100cf86
2 changed files with 22 additions and 7 deletions

View File

@@ -34,6 +34,12 @@ Value CallRPC(string args)
boost::split(vArgs, args, boost::is_any_of(" \t"));
string strMethod = vArgs[0];
vArgs.erase(vArgs.begin());
// Handle empty strings the same way as CLI
for (auto i = 0; i < vArgs.size(); i++) {
if (vArgs[i] == "\"\"") {
vArgs[i] = "";
}
}
Array params = RPCConvertValues(strMethod, vArgs);
rpcfn_type method = tableRPC[strMethod]->actor;