@@ -22,7 +22,7 @@ pub fn process_set_authority(accounts: &[AccountInfo], instruction_data: &[u8])
2222
2323 // Validates the accounts.
2424
25- let [ account_info, authority_info, remaning @ ..] = accounts else {
25+ let [ account_info, authority_info, remaining @ ..] = accounts else {
2626 return Err ( ProgramError :: NotEnoughAccountKeys ) ;
2727 } ;
2828
@@ -37,7 +37,7 @@ pub fn process_set_authority(accounts: &[AccountInfo], instruction_data: &[u8])
3737
3838 match authority_type {
3939 AuthorityType :: AccountOwner => {
40- validate_owner ( & account. owner , authority_info, remaning ) ?;
40+ validate_owner ( & account. owner , authority_info, remaining ) ?;
4141
4242 if let Some ( authority) = new_authority {
4343 account. owner = * authority;
@@ -54,7 +54,7 @@ pub fn process_set_authority(accounts: &[AccountInfo], instruction_data: &[u8])
5454 }
5555 AuthorityType :: CloseAccount => {
5656 let authority = account. close_authority ( ) . unwrap_or ( & account. owner ) ;
57- validate_owner ( authority, authority_info, remaning ) ?;
57+ validate_owner ( authority, authority_info, remaining ) ?;
5858
5959 if let Some ( authority) = new_authority {
6060 account. set_close_authority ( authority) ;
@@ -77,7 +77,7 @@ pub fn process_set_authority(accounts: &[AccountInfo], instruction_data: &[u8])
7777 // mint_authority.
7878 let mint_authority = mint. mint_authority ( ) . ok_or ( TokenError :: FixedSupply ) ?;
7979
80- validate_owner ( mint_authority, authority_info, remaning ) ?;
80+ validate_owner ( mint_authority, authority_info, remaining ) ?;
8181
8282 if let Some ( authority) = new_authority {
8383 mint. set_mint_authority ( authority) ;
@@ -92,7 +92,7 @@ pub fn process_set_authority(accounts: &[AccountInfo], instruction_data: &[u8])
9292 . freeze_authority ( )
9393 . ok_or ( TokenError :: MintCannotFreeze ) ?;
9494
95- validate_owner ( freeze_authority, authority_info, remaning ) ?;
95+ validate_owner ( freeze_authority, authority_info, remaining ) ?;
9696
9797 if let Some ( authority) = new_authority {
9898 mint. set_freeze_authority ( authority) ;
0 commit comments