@@ -272,17 +272,6 @@ impl TryFrom<CliAuthorityType> for AuthorityType {
272
272
}
273
273
274
274
pub fn owner_address_arg < ' a > ( ) -> Arg < ' a > {
275
- Arg :: with_name ( OWNER_ADDRESS_ARG . name )
276
- . long ( OWNER_ADDRESS_ARG . long )
277
- . takes_value ( true )
278
- . value_name ( "OWNER_ADDRESS" )
279
- . validator ( |s| is_valid_pubkey ( s) )
280
- . help ( OWNER_ADDRESS_ARG . help )
281
- }
282
-
283
- // Temporary function that uses proper parsing to minimize commit size
284
- // TODO: use this to replace `owner_address_arg`
285
- pub fn owner_address_arg_temp < ' a > ( ) -> Arg < ' a > {
286
275
Arg :: with_name ( OWNER_ADDRESS_ARG . name )
287
276
. long ( OWNER_ADDRESS_ARG . long )
288
277
. takes_value ( true )
@@ -1237,7 +1226,7 @@ pub fn app<'a>(
1237
1226
"Lock the owner of this token account from ever being changed"
1238
1227
) ,
1239
1228
)
1240
- . arg ( owner_address_arg_temp ( ) )
1229
+ . arg ( owner_address_arg ( ) )
1241
1230
. nonce_args ( true )
1242
1231
)
1243
1232
. subcommand (
@@ -1796,7 +1785,7 @@ pub fn app<'a>(
1796
1785
. help ( "Specify the token account to close \
1797
1786
[default: owner's associated token account]") ,
1798
1787
)
1799
- . arg ( owner_address_arg_temp ( ) )
1788
+ . arg ( owner_address_arg ( ) )
1800
1789
. arg ( multisig_signer_arg ( ) )
1801
1790
. nonce_args ( true )
1802
1791
. offline_args ( ) ,
@@ -1850,7 +1839,7 @@ pub fn app<'a>(
1850
1839
. required_unless ( "address" )
1851
1840
. help ( "Token of associated account. To query a specific account, use the `--address` parameter instead" ) ,
1852
1841
)
1853
- . arg ( owner_address_arg_temp ( ) . conflicts_with ( "address" ) )
1842
+ . arg ( owner_address_arg ( ) . conflicts_with ( "address" ) )
1854
1843
. arg (
1855
1844
Arg :: with_name ( "address" )
1856
1845
. value_parser ( SignerSourceParserBuilder :: default ( ) . allow_all ( ) . build ( ) )
@@ -1914,7 +1903,7 @@ pub fn app<'a>(
1914
1903
"Print token account addresses only"
1915
1904
) ,
1916
1905
)
1917
- . arg ( owner_address_arg_temp ( ) )
1906
+ . arg ( owner_address_arg ( ) )
1918
1907
)
1919
1908
. subcommand (
1920
1909
SubCommand :: with_name ( CommandName :: Address . into ( ) )
@@ -1930,7 +1919,7 @@ pub fn app<'a>(
1930
1919
[Default: return the client keypair address]")
1931
1920
)
1932
1921
. arg (
1933
- owner_address_arg_temp ( )
1922
+ owner_address_arg ( )
1934
1923
. requires ( "token" )
1935
1924
. help ( "Return the associated token address for the given owner. \
1936
1925
[Default: return the associated token address for the client keypair]") ,
@@ -2380,7 +2369,7 @@ pub fn app<'a>(
2380
2369
. required ( true )
2381
2370
. help ( "Specify the address of the account to send lamports to" ) ,
2382
2371
)
2383
- . arg ( owner_address_arg_temp ( ) )
2372
+ . arg ( owner_address_arg ( ) )
2384
2373
. arg ( multisig_signer_arg ( ) )
2385
2374
)
2386
2375
. subcommand (
0 commit comments