* CLI: Fix `rent` panic on non-numeric input (+monikers)
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Update cli/src/cluster_query.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
(cherry picked from commit c5c3ae0203
)
Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
@@ -927,7 +927,9 @@ pub fn parse_command(
|
||||
})
|
||||
}
|
||||
("rent", Some(matches)) => {
|
||||
let data_length = value_of(matches, "data_length").unwrap();
|
||||
let data_length = value_of::<RentLengthValue>(matches, "data_length")
|
||||
.unwrap()
|
||||
.length();
|
||||
let use_lamports_unit = matches.is_present("lamports");
|
||||
Ok(CliCommandInfo {
|
||||
command: CliCommand::Rent {
|
||||
|
Reference in New Issue
Block a user