|
@@ -29,8 +29,8 @@ fn pull_lever(
|
|
|
|
|
|
let ix = Instruction::new_with_borsh(
|
|
|
lever_program.key.clone(), // Our lever program's ID
|
|
|
- &set_power_status_instruction, // Passing same instructions through
|
|
|
- vec![AccountMeta::new(power.key.clone(), false)], // Passing same accounts through
|
|
|
+ &set_power_status_instruction, // Passing instructions through
|
|
|
+ vec![AccountMeta::new(power.key.clone(), false)], // Just the required account for the other program
|
|
|
);
|
|
|
|
|
|
invoke(&ix, &[power.clone()])
|