Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 8dea843

Browse files
committed
fix clippy error, add validation
Signed-off-by: Hrushi20 <[email protected]>
1 parent 3640898 commit 8dea843

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

token/cli/src/clap_app.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ pub fn app<'a, 'b>(
779779
.number_of_values(1)
780780
.conflicts_with("transfer_fee")
781781
.requires("transfer_fee_maximum_fee")
782+
.validator(is_parsable::<u16>)
782783
.help(
783784
"Add transfer fee to the mint. \
784785
The mint authority can set the fee.",
@@ -792,6 +793,7 @@ pub fn app<'a, 'b>(
792793
.number_of_values(1)
793794
.conflicts_with("transfer_fee")
794795
.requires("transfer_fee_basis_points")
796+
.validator(is_amount)
795797
.help(
796798
"Add a UI amount maximum transfer fee to the mint. \
797799
The mint authority can set and collect fees"

token/cli/tests/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ async fn transfer_fee_basis_point(test_validator: &TestValidator, payer: &Keypai
25312531

25322532
let token = Keypair::new();
25332533
let token_keypair_file = NamedTempFile::new().unwrap();
2534-
write_keypair_file(&token, &token_keypair_file);
2534+
write_keypair_file(&token, &token_keypair_file).unwrap();
25352535
let token_pubkey = token.pubkey();
25362536
process_test_command(
25372537
&config,

0 commit comments

Comments
 (0)