@@ -70,13 +70,13 @@ use bench::*;
70
70
pub const OWNER_ADDRESS_ARG : ArgConstant < ' static > = ArgConstant {
71
71
name : "owner" ,
72
72
long : "owner" ,
73
- help : "Address of the token's owner . Defaults to the client keypair address." ,
73
+ help : "Address of the primary authority controlling a mint or account . Defaults to the client keypair address." ,
74
74
} ;
75
75
76
76
pub const OWNER_KEYPAIR_ARG : ArgConstant < ' static > = ArgConstant {
77
77
name : "owner" ,
78
78
long : "owner" ,
79
- help : "Keypair of the token's owner . Defaults to the client keypair." ,
79
+ help : "Keypair of the primary authority controlling a mint or account . Defaults to the client keypair." ,
80
80
} ;
81
81
82
82
pub const MINT_ADDRESS_ARG : ArgConstant < ' static > = ArgConstant {
@@ -1348,13 +1348,8 @@ async fn command_wrap(
1348
1348
let lamports = sol_to_lamports ( sol) ;
1349
1349
let token = native_token_client_from_config ( config) ?;
1350
1350
1351
- let account = wrapped_sol_account. unwrap_or_else ( || {
1352
- get_associated_token_address_with_program_id (
1353
- & wallet_address,
1354
- token. get_address ( ) ,
1355
- & config. program_id ,
1356
- )
1357
- } ) ;
1351
+ let account =
1352
+ wrapped_sol_account. unwrap_or_else ( || token. get_associated_token_address ( & wallet_address) ) ;
1358
1353
1359
1354
println_display ( config, format ! ( "Wrapping {} SOL into {}" , sol, account) ) ;
1360
1355
@@ -1407,13 +1402,8 @@ async fn command_unwrap(
1407
1402
let use_associated_account = maybe_account. is_none ( ) ;
1408
1403
let token = native_token_client_from_config ( config) ?;
1409
1404
1410
- let account = maybe_account. unwrap_or_else ( || {
1411
- get_associated_token_address_with_program_id (
1412
- & wallet_address,
1413
- token. get_address ( ) ,
1414
- & config. program_id ,
1415
- )
1416
- } ) ;
1405
+ let account =
1406
+ maybe_account. unwrap_or_else ( || token. get_associated_token_address ( & wallet_address) ) ;
1417
1407
1418
1408
println_display ( config, format ! ( "Unwrapping {}" , account) ) ;
1419
1409
@@ -2805,7 +2795,8 @@ fn app<'a, 'b>(
2805
2795
. value_name ( "RECIPIENT_TOKEN_ACCOUNT_ADDRESS" )
2806
2796
. takes_value ( true )
2807
2797
. index ( 3 )
2808
- . help ( "The token account address of recipient [default: associated token account for --owner]" ) ,
2798
+ . help ( "The token account address of recipient \
2799
+ [default: associated token account for --mint-authority]") ,
2809
2800
)
2810
2801
. arg (
2811
2802
Arg :: with_name ( "mint_authority" )
@@ -2953,6 +2944,7 @@ fn app<'a, 'b>(
2953
2944
Defaults to the client keypair."
2954
2945
) ,
2955
2946
)
2947
+ . arg ( owner_address_arg ( ) )
2956
2948
. arg ( multisig_signer_arg ( ) )
2957
2949
. nonce_args ( true )
2958
2950
. offline_args ( ) ,
@@ -3027,7 +3019,6 @@ fn app<'a, 'b>(
3027
3019
. help ( "Token of the associated account to close. \
3028
3020
To close a specific account, use the `--address` parameter instead") ,
3029
3021
)
3030
- . arg ( owner_address_arg ( ) )
3031
3022
. arg (
3032
3023
Arg :: with_name ( "recipient" )
3033
3024
. long ( "recipient" )
@@ -3060,6 +3051,7 @@ fn app<'a, 'b>(
3060
3051
. help ( "Specify the token account to close \
3061
3052
[default: owner's associated token account]") ,
3062
3053
)
3054
+ . arg ( owner_address_arg ( ) )
3063
3055
. arg ( multisig_signer_arg ( ) )
3064
3056
. nonce_args ( true )
3065
3057
)
@@ -3075,7 +3067,6 @@ fn app<'a, 'b>(
3075
3067
. required ( true )
3076
3068
. help ( "Token to close" ) ,
3077
3069
)
3078
- . arg ( owner_address_arg ( ) )
3079
3070
. arg (
3080
3071
Arg :: with_name ( "recipient" )
3081
3072
. long ( "recipient" )
@@ -3096,6 +3087,7 @@ fn app<'a, 'b>(
3096
3087
Defaults to the client keypair.",
3097
3088
) ,
3098
3089
)
3090
+ . arg ( owner_address_arg ( ) )
3099
3091
. arg ( multisig_signer_arg ( ) )
3100
3092
. nonce_args ( true )
3101
3093
. offline_args ( ) ,
0 commit comments