@@ -274,17 +274,6 @@ impl TryFrom<CliAuthorityType> for AuthorityType {
274
274
}
275
275
276
276
pub fn owner_address_arg < ' a > ( ) -> Arg < ' a > {
277
- Arg :: with_name ( OWNER_ADDRESS_ARG . name )
278
- . long ( OWNER_ADDRESS_ARG . long )
279
- . takes_value ( true )
280
- . value_name ( "OWNER_ADDRESS" )
281
- . validator ( |s| is_valid_pubkey ( s) )
282
- . help ( OWNER_ADDRESS_ARG . help )
283
- }
284
-
285
- // Temporary function that uses proper parsing to minimize commit size
286
- // TODO: use this to replace `owner_address_arg`
287
- pub fn owner_address_arg_temp < ' a > ( ) -> Arg < ' a > {
288
277
Arg :: with_name ( OWNER_ADDRESS_ARG . name )
289
278
. long ( OWNER_ADDRESS_ARG . long )
290
279
. takes_value ( true )
@@ -1239,7 +1228,7 @@ pub fn app<'a>(
1239
1228
"Lock the owner of this token account from ever being changed"
1240
1229
) ,
1241
1230
)
1242
- . arg ( owner_address_arg_temp ( ) )
1231
+ . arg ( owner_address_arg ( ) )
1243
1232
. nonce_args ( true )
1244
1233
)
1245
1234
. subcommand (
@@ -1798,7 +1787,7 @@ pub fn app<'a>(
1798
1787
. help ( "Specify the token account to close \
1799
1788
[default: owner's associated token account]") ,
1800
1789
)
1801
- . arg ( owner_address_arg_temp ( ) )
1790
+ . arg ( owner_address_arg ( ) )
1802
1791
. arg ( multisig_signer_arg ( ) )
1803
1792
. nonce_args ( true )
1804
1793
. offline_args ( ) ,
@@ -1852,7 +1841,7 @@ pub fn app<'a>(
1852
1841
. required_unless ( "address" )
1853
1842
. help ( "Token of associated account. To query a specific account, use the `--address` parameter instead" ) ,
1854
1843
)
1855
- . arg ( owner_address_arg_temp ( ) . conflicts_with ( "address" ) )
1844
+ . arg ( owner_address_arg ( ) . conflicts_with ( "address" ) )
1856
1845
. arg (
1857
1846
Arg :: with_name ( "address" )
1858
1847
. value_parser ( SignerSourceParserBuilder :: default ( ) . allow_all ( ) . build ( ) )
@@ -1916,7 +1905,7 @@ pub fn app<'a>(
1916
1905
"Print token account addresses only"
1917
1906
) ,
1918
1907
)
1919
- . arg ( owner_address_arg_temp ( ) )
1908
+ . arg ( owner_address_arg ( ) )
1920
1909
)
1921
1910
. subcommand (
1922
1911
SubCommand :: with_name ( CommandName :: Address . into ( ) )
@@ -1932,7 +1921,7 @@ pub fn app<'a>(
1932
1921
[Default: return the client keypair address]")
1933
1922
)
1934
1923
. arg (
1935
- owner_address_arg_temp ( )
1924
+ owner_address_arg ( )
1936
1925
. requires ( "token" )
1937
1926
. help ( "Return the associated token address for the given owner. \
1938
1927
[Default: return the associated token address for the client keypair]") ,
@@ -2382,7 +2371,7 @@ pub fn app<'a>(
2382
2371
. required ( true )
2383
2372
. help ( "Specify the address of the account to send lamports to" ) ,
2384
2373
)
2385
- . arg ( owner_address_arg_temp ( ) )
2374
+ . arg ( owner_address_arg ( ) )
2386
2375
. arg ( multisig_signer_arg ( ) )
2387
2376
)
2388
2377
. subcommand (
0 commit comments