Skip to content

Commit

Permalink
Merge pull request #6035 from conr2d/wallet_password
Browse files Browse the repository at this point in the history
Remove double quotes when saving wallet password to file
  • Loading branch information
heifner authored Oct 17, 2018
2 parents 629a987 + 236898e commit a78a8b2
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 a78a8b2

Please sign in to comment.