File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
programs/remote-executor/src/tests Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
#![ deny( warnings) ]
2
2
pub mod cli;
3
-
4
3
use std:: str:: FromStr ;
5
4
6
5
use anchor_client:: {
@@ -318,6 +317,13 @@ pub fn get_execute_instruction(
318
317
319
318
// Add the rest of `remaining_accounts` from the payload
320
319
for instruction in executor_payload. instructions {
320
+ // Push program_id
321
+ account_metas. push ( AccountMeta {
322
+ pubkey : instruction. program_id ,
323
+ is_signer : false ,
324
+ is_writable : false ,
325
+ } ) ;
326
+ // Push other accounts
321
327
for account_meta in Instruction :: from ( & instruction) . accounts {
322
328
if account_meta. pubkey != executor_key {
323
329
account_metas. push ( account_meta. clone ( ) ) ;
Original file line number Diff line number Diff line change @@ -340,6 +340,13 @@ impl ExecutorSimulator {
340
340
341
341
// Add the rest of `remaining_accounts` from parsing the payload
342
342
for instruction in executor_payload. instructions {
343
+ // Push program_id
344
+ account_metas. push ( AccountMeta {
345
+ pubkey : instruction. program_id ,
346
+ is_signer : false ,
347
+ is_writable : false ,
348
+ } ) ;
349
+ // Push other accounts
343
350
for account_meta in Instruction :: from ( & instruction) . accounts {
344
351
if account_meta. pubkey != executor_key {
345
352
account_metas. push ( account_meta. clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments