Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4242 from redjade/redjade-patch-1
Browse files Browse the repository at this point in the history
Add R1 public key for cleos set account permission
  • Loading branch information
spoonincode authored Jun 26, 2018
2 parents 905e7c8 + 3dfd627 commit 74c6c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ authority parse_json_authority(const std::string& authorityJsonOrFile) {
}

authority parse_json_authority_or_key(const std::string& authorityJsonOrFile) {
if (boost::istarts_with(authorityJsonOrFile, "EOS")) {
if (boost::istarts_with(authorityJsonOrFile, "EOS") || boost::istarts_with(authorityJsonOrFile, "PUB_R1")) {
try {
return authority(public_key_type(authorityJsonOrFile));
} EOS_RETHROW_EXCEPTIONS(public_key_type_exception, "Invalid public key: ${public_key}", ("public_key", authorityJsonOrFile))
Expand Down

0 comments on commit 74c6c27

Please sign in to comment.