@@ -31,7 +31,7 @@ struct ValidationSection {
3131 max_allowed_lamports : u64 ,
3232 max_signatures : u64 ,
3333 allowed_programs : Vec < String > ,
34- must_call_programs : Vec < String > ,
34+ require_one_of_programs : Vec < String > ,
3535 allowed_tokens : Vec < String > ,
3636 allowed_spl_paid_tokens : SplTokenConfig ,
3737 disallowed_accounts : Vec < String > ,
@@ -56,7 +56,7 @@ impl Default for ValidationSection {
5656 max_allowed_lamports : 1000000000 ,
5757 max_signatures : 10 ,
5858 allowed_programs : vec ! [ "program1" . to_string( ) ] ,
59- must_call_programs : vec ! [ ] ,
59+ require_one_of_programs : vec ! [ ] ,
6060 allowed_tokens : vec ! [ "token1" . to_string( ) ] ,
6161 allowed_spl_paid_tokens : SplTokenConfig :: Allowlist ( vec ! [ "token2" . to_string( ) ] ) ,
6262 disallowed_accounts : vec ! [ ] ,
@@ -91,8 +91,8 @@ impl ConfigBuilder {
9191 self
9292 }
9393
94- pub fn with_must_call_programs ( mut self , programs : Vec < & str > ) -> Self {
95- self . validation . must_call_programs = programs. iter ( ) . map ( |s| s. to_string ( ) ) . collect ( ) ;
94+ pub fn with_require_one_of_programs ( mut self , programs : Vec < & str > ) -> Self {
95+ self . validation . require_one_of_programs = programs. iter ( ) . map ( |s| s. to_string ( ) ) . collect ( ) ;
9696 self
9797 }
9898
@@ -289,13 +289,13 @@ impl ConfigBuilder {
289289 )
290290 } ;
291291
292- let must_call_list = if self . validation . must_call_programs . is_empty ( ) {
292+ let require_one_of_list = if self . validation . require_one_of_programs . is_empty ( ) {
293293 "[]" . to_string ( )
294294 } else {
295295 format ! (
296296 "[{}]" ,
297297 self . validation
298- . must_call_programs
298+ . require_one_of_programs
299299 . iter( )
300300 . map( |p| format!( "\" {p}\" " ) )
301301 . collect:: <Vec <_>>( )
@@ -308,15 +308,15 @@ impl ConfigBuilder {
308308 max_allowed_lamports = {}\n \
309309 max_signatures = {}\n \
310310 allowed_programs = [{}]\n \
311- must_call_programs = {}\n \
311+ require_one_of_programs = {}\n \
312312 allowed_tokens = [{}]\n \
313313 allowed_spl_paid_tokens = {}\n \
314314 disallowed_accounts = {}\n \
315315 price_source = \" {}\" \n \n ",
316316 self . validation. max_allowed_lamports,
317317 self . validation. max_signatures,
318318 programs_list,
319- must_call_list ,
319+ require_one_of_list ,
320320 tokens_list,
321321 spl_tokens_config,
322322 disallowed_list,
0 commit comments