@@ -138,10 +138,6 @@ pub mod election {
138138 ) ]
139139 pub comp_def_account : Account < ' info , ComputationDefinitionAccount > ,
140140
141- #[ account( address = :: anchor_lang:: solana_program:: sysvar:: instructions:: ID ) ]
142- /// CHECK: instructions_sysvar, checked by the account constraint
143- pub instructions_sysvar : AccountInfo < ' info > ,
144-
145141 #[ account( address = derive_mxe_pda!( ) ) ]
146142 pub mxe_account : Account < ' info , MXEAccount > ,
147143
@@ -151,6 +147,10 @@ pub mod election {
151147 #[ account( address = derive_cluster_pda!( mxe_account, ErrorCode :: ClusterNotSet ) ) ]
152148 pub cluster_account : Account < ' info , Cluster > ,
153149
150+ #[ account( address = :: anchor_lang:: solana_program:: sysvar:: instructions:: ID ) ]
151+ /// CHECK: instructions_sysvar, checked by the account constraint
152+ pub instructions_sysvar : AccountInfo < ' info > ,
153+
154154 /// CHECK: poll_account, checked by the callback account key passed in queue_computation
155155 #[ account( mut ) ]
156156 pub poll_account : Account < ' info , Poll > ,
@@ -360,10 +360,6 @@ pub mod election {
360360 ) ]
361361 pub comp_def_account : Account < ' info , ComputationDefinitionAccount > ,
362362
363- #[ account( address = :: anchor_lang:: solana_program:: sysvar:: instructions:: ID ) ]
364- /// CHECK: instructions_sysvar, checked by the account constraint
365- pub instructions_sysvar : AccountInfo < ' info > ,
366-
367363 #[ account( address = derive_mxe_pda!( ) ) ]
368364 pub mxe_account : Account < ' info , MXEAccount > ,
369365
@@ -373,6 +369,10 @@ pub mod election {
373369 #[ account( address = derive_cluster_pda!( mxe_account, ErrorCode :: ClusterNotSet ) ) ]
374370 pub cluster_account : Account < ' info , Cluster > ,
375371
372+ #[ account( address = :: anchor_lang:: solana_program:: sysvar:: instructions:: ID ) ]
373+ /// CHECK: instructions_sysvar, checked by the account constraint
374+ pub instructions_sysvar : AccountInfo < ' info > ,
375+
376376 #[ account( mut ) ]
377377 pub poll_account : Account < ' info , Poll > ,
378378 }
@@ -493,10 +493,6 @@ pub mod election {
493493 ) ]
494494 pub comp_def_account : Account < ' info , ComputationDefinitionAccount > ,
495495
496- #[ account( address = :: anchor_lang:: solana_program:: sysvar:: instructions:: ID ) ]
497- /// CHECK: instructions_sysvar, checked by the account constraint
498- pub instructions_sysvar : AccountInfo < ' info > ,
499-
500496 #[ account( address = derive_mxe_pda!( ) ) ]
501497 pub mxe_account : Account < ' info , MXEAccount > ,
502498
@@ -505,6 +501,10 @@ pub mod election {
505501
506502 #[ account( address = derive_cluster_pda!( mxe_account, ErrorCode :: ClusterNotSet ) ) ]
507503 pub cluster_account : Account < ' info , Cluster > ,
504+
505+ #[ account( address = :: anchor_lang:: solana_program:: sysvar:: instructions:: ID ) ]
506+ /// CHECK: instructions_sysvar, checked by the account constraint
507+ pub instructions_sysvar : AccountInfo < ' info > ,
508508 }
509509}
510510
0 commit comments