Skip to content

Commit

Permalink
Remove double quotes when saving wallet password to file
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d committed Oct 17, 2018
1 parent e6eef0a commit 236898e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2561,8 +2561,10 @@ int main( int argc, char** argv ) {
std::cout << fc::json::to_pretty_string(v) << std::endl;
} else {
std::cerr << localized("saving password to ${filename}", ("filename", password_file)) << std::endl;
auto password_str = fc::json::to_pretty_string(v);
boost::replace_all(password_str, "\"", "");
std::ofstream out( password_file.c_str() );
out << fc::json::to_pretty_string(v);
out << password_str;
}
});

Expand Down

0 comments on commit 236898e

Please sign in to comment.