@@ -221,14 +221,14 @@ pub fn process_instruction(
221
221
let to = next_keyed_account ( keyed_accounts_iter) ?;
222
222
transfer_lamports ( from, to, lamports)
223
223
}
224
- SystemInstruction :: NonceAdvance => {
224
+ SystemInstruction :: AdvanceNonceAccount => {
225
225
let me = & mut next_keyed_account ( keyed_accounts_iter) ?;
226
226
me. nonce_advance (
227
227
& RecentBlockhashes :: from_keyed_account ( next_keyed_account ( keyed_accounts_iter) ?) ?,
228
228
& signers,
229
229
)
230
230
}
231
- SystemInstruction :: NonceWithdraw ( lamports) => {
231
+ SystemInstruction :: WithdrawNonceAccount ( lamports) => {
232
232
let me = & mut next_keyed_account ( keyed_accounts_iter) ?;
233
233
let to = & mut next_keyed_account ( keyed_accounts_iter) ?;
234
234
me. nonce_withdraw (
@@ -239,15 +239,15 @@ pub fn process_instruction(
239
239
& signers,
240
240
)
241
241
}
242
- SystemInstruction :: NonceInitialize ( authorized) => {
242
+ SystemInstruction :: InitializeNonceAccount ( authorized) => {
243
243
let me = & mut next_keyed_account ( keyed_accounts_iter) ?;
244
244
me. nonce_initialize (
245
245
& authorized,
246
246
& RecentBlockhashes :: from_keyed_account ( next_keyed_account ( keyed_accounts_iter) ?) ?,
247
247
& Rent :: from_keyed_account ( next_keyed_account ( keyed_accounts_iter) ?) ?,
248
248
)
249
249
}
250
- SystemInstruction :: NonceAuthorize ( nonce_authority) => {
250
+ SystemInstruction :: AuthorizeNonceAccount ( nonce_authority) => {
251
251
let me = & mut next_keyed_account ( keyed_accounts_iter) ?;
252
252
me. nonce_authorize ( & nonce_authority, & signers)
253
253
}
@@ -882,7 +882,7 @@ mod tests {
882
882
super :: process_instruction(
883
883
& Pubkey :: default ( ) ,
884
884
& mut [ ] ,
885
- & serialize( & SystemInstruction :: NonceAdvance ) . unwrap( )
885
+ & serialize( & SystemInstruction :: AdvanceNonceAccount ) . unwrap( )
886
886
) ,
887
887
Err ( InstructionError :: NotEnoughAccountKeys ) ,
888
888
) ;
@@ -898,7 +898,7 @@ mod tests {
898
898
true ,
899
899
& mut Account :: default ( ) ,
900
900
) , ] ,
901
- & serialize( & SystemInstruction :: NonceAdvance ) . unwrap( ) ,
901
+ & serialize( & SystemInstruction :: AdvanceNonceAccount ) . unwrap( ) ,
902
902
) ,
903
903
Err ( InstructionError :: NotEnoughAccountKeys ) ,
904
904
) ;
@@ -917,7 +917,7 @@ mod tests {
917
917
& mut Account :: default ( ) ,
918
918
) ,
919
919
] ,
920
- & serialize( & SystemInstruction :: NonceAdvance ) . unwrap( ) ,
920
+ & serialize( & SystemInstruction :: AdvanceNonceAccount ) . unwrap( ) ,
921
921
) ,
922
922
Err ( InstructionError :: InvalidArgument ) ,
923
923
) ;
@@ -944,7 +944,7 @@ mod tests {
944
944
& mut sysvar:: rent:: create_account ( 1 , & Rent :: free ( ) ) ,
945
945
) ,
946
946
] ,
947
- & serialize ( & SystemInstruction :: NonceInitialize ( Pubkey :: default ( ) ) ) . unwrap ( ) ,
947
+ & serialize ( & SystemInstruction :: InitializeNonceAccount ( Pubkey :: default ( ) ) ) . unwrap ( ) ,
948
948
)
949
949
. unwrap ( ) ;
950
950
assert_eq ! (
@@ -961,7 +961,7 @@ mod tests {
961
961
) ,
962
962
) ,
963
963
] ,
964
- & serialize( & SystemInstruction :: NonceAdvance ) . unwrap( ) ,
964
+ & serialize( & SystemInstruction :: AdvanceNonceAccount ) . unwrap( ) ,
965
965
) ,
966
966
Ok ( ( ) ) ,
967
967
) ;
@@ -986,7 +986,7 @@ mod tests {
986
986
super :: process_instruction(
987
987
& Pubkey :: default ( ) ,
988
988
& mut [ ] ,
989
- & serialize( & SystemInstruction :: NonceWithdraw ( 42 ) ) . unwrap( ) ,
989
+ & serialize( & SystemInstruction :: WithdrawNonceAccount ( 42 ) ) . unwrap( ) ,
990
990
) ,
991
991
Err ( InstructionError :: NotEnoughAccountKeys ) ,
992
992
) ;
@@ -1002,7 +1002,7 @@ mod tests {
1002
1002
true ,
1003
1003
& mut Account :: default ( ) ,
1004
1004
) , ] ,
1005
- & serialize( & SystemInstruction :: NonceWithdraw ( 42 ) ) . unwrap( ) ,
1005
+ & serialize( & SystemInstruction :: WithdrawNonceAccount ( 42 ) ) . unwrap( ) ,
1006
1006
) ,
1007
1007
Err ( InstructionError :: NotEnoughAccountKeys ) ,
1008
1008
) ;
@@ -1022,7 +1022,7 @@ mod tests {
1022
1022
& mut Account :: default ( ) ,
1023
1023
) ,
1024
1024
] ,
1025
- & serialize( & SystemInstruction :: NonceWithdraw ( 42 ) ) . unwrap( ) ,
1025
+ & serialize( & SystemInstruction :: WithdrawNonceAccount ( 42 ) ) . unwrap( ) ,
1026
1026
) ,
1027
1027
Err ( InstructionError :: InvalidArgument ) ,
1028
1028
) ;
@@ -1050,7 +1050,7 @@ mod tests {
1050
1050
) ,
1051
1051
KeyedAccount :: new( & sysvar:: rent:: id( ) , false , & mut Account :: default ( ) , ) ,
1052
1052
] ,
1053
- & serialize( & SystemInstruction :: NonceWithdraw ( 42 ) ) . unwrap( ) ,
1053
+ & serialize( & SystemInstruction :: WithdrawNonceAccount ( 42 ) ) . unwrap( ) ,
1054
1054
) ,
1055
1055
Err ( InstructionError :: InvalidArgument ) ,
1056
1056
) ;
@@ -1082,7 +1082,7 @@ mod tests {
1082
1082
& mut sysvar:: rent:: create_account( 1 , & Rent :: free( ) )
1083
1083
) ,
1084
1084
] ,
1085
- & serialize( & SystemInstruction :: NonceWithdraw ( 42 ) ) . unwrap( ) ,
1085
+ & serialize( & SystemInstruction :: WithdrawNonceAccount ( 42 ) ) . unwrap( ) ,
1086
1086
) ,
1087
1087
Ok ( ( ) ) ,
1088
1088
) ;
@@ -1094,7 +1094,7 @@ mod tests {
1094
1094
super :: process_instruction(
1095
1095
& Pubkey :: default ( ) ,
1096
1096
& mut [ ] ,
1097
- & serialize( & SystemInstruction :: NonceInitialize ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1097
+ & serialize( & SystemInstruction :: InitializeNonceAccount ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1098
1098
) ,
1099
1099
Err ( InstructionError :: NotEnoughAccountKeys ) ,
1100
1100
) ;
@@ -1110,7 +1110,7 @@ mod tests {
1110
1110
true ,
1111
1111
& mut nonce_state:: create_account( 1_000_000 ) ,
1112
1112
) , ] ,
1113
- & serialize( & SystemInstruction :: NonceInitialize ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1113
+ & serialize( & SystemInstruction :: InitializeNonceAccount ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1114
1114
) ,
1115
1115
Err ( InstructionError :: NotEnoughAccountKeys ) ,
1116
1116
) ;
@@ -1133,7 +1133,7 @@ mod tests {
1133
1133
& mut Account :: default ( ) ,
1134
1134
) ,
1135
1135
] ,
1136
- & serialize( & SystemInstruction :: NonceInitialize ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1136
+ & serialize( & SystemInstruction :: InitializeNonceAccount ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1137
1137
) ,
1138
1138
Err ( InstructionError :: InvalidArgument ) ,
1139
1139
) ;
@@ -1160,7 +1160,7 @@ mod tests {
1160
1160
) ,
1161
1161
KeyedAccount :: new( & sysvar:: rent:: id( ) , false , & mut Account :: default ( ) , ) ,
1162
1162
] ,
1163
- & serialize( & SystemInstruction :: NonceInitialize ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1163
+ & serialize( & SystemInstruction :: InitializeNonceAccount ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1164
1164
) ,
1165
1165
Err ( InstructionError :: InvalidArgument ) ,
1166
1166
) ;
@@ -1191,7 +1191,7 @@ mod tests {
1191
1191
& mut sysvar:: rent:: create_account( 1 , & Rent :: free( ) )
1192
1192
) ,
1193
1193
] ,
1194
- & serialize( & SystemInstruction :: NonceInitialize ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1194
+ & serialize( & SystemInstruction :: InitializeNonceAccount ( Pubkey :: default ( ) ) ) . unwrap( ) ,
1195
1195
) ,
1196
1196
Ok ( ( ) ) ,
1197
1197
) ;
@@ -1218,14 +1218,14 @@ mod tests {
1218
1218
& mut sysvar:: rent:: create_account ( 1 , & Rent :: free ( ) ) ,
1219
1219
) ,
1220
1220
] ,
1221
- & serialize ( & SystemInstruction :: NonceInitialize ( Pubkey :: default ( ) ) ) . unwrap ( ) ,
1221
+ & serialize ( & SystemInstruction :: InitializeNonceAccount ( Pubkey :: default ( ) ) ) . unwrap ( ) ,
1222
1222
)
1223
1223
. unwrap ( ) ;
1224
1224
assert_eq ! (
1225
1225
super :: process_instruction(
1226
1226
& Pubkey :: default ( ) ,
1227
1227
& mut [ KeyedAccount :: new( & Pubkey :: default ( ) , true , & mut nonce_acc, ) , ] ,
1228
- & serialize( & SystemInstruction :: NonceAuthorize ( Pubkey :: default ( ) , ) ) . unwrap( ) ,
1228
+ & serialize( & SystemInstruction :: AuthorizeNonceAccount ( Pubkey :: default ( ) , ) ) . unwrap( ) ,
1229
1229
) ,
1230
1230
Ok ( ( ) ) ,
1231
1231
) ;
0 commit comments