Skip to content

Commit

Permalink
Allow pubkey owner for accounts subcommand (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Mar 11, 2021
1 parent 90b4b33 commit 123f0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions token/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1611,8 +1611,8 @@ fn main() {
path: default_signer_path,
arg_name: default_signer_arg_name,
};
// Owner doesn't sign when it's a multisig
let owner = if matches.is_present(MULTISIG_SIGNER_ARG.name) {
// Owner doesn't sign when it's a multisig; and the `accounts` command is read-only
let owner = if matches.is_present(MULTISIG_SIGNER_ARG.name) || sub_command == "accounts" {
let owner_val = matches
.value_of("owner")
.unwrap_or(&cli_config.keypair_path);
Expand Down

0 comments on commit 123f0da

Please sign in to comment.