CLI: Use Base58 encoding rather than deprecated Binary for TX decode (#12265)

(cherry picked from commit 83f93fed02)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2020-09-16 05:43:38 +00:00
committed by GitHub
parent 953c40a9e3
commit c77fe54629

View File

@ -867,7 +867,7 @@ pub fn parse_command(
("decode-transaction", Some(matches)) => {
let blob = value_t_or_exit!(matches, "transaction", String);
let encoding = match matches.value_of("encoding").unwrap() {
"base58" => UiTransactionEncoding::Binary,
"base58" => UiTransactionEncoding::Base58,
"base64" => UiTransactionEncoding::Base64,
_ => unreachable!(),
};