diff --git a/e2e/anchor/src/generated/instructions/create_guard.rs b/e2e/anchor/src/generated/instructions/create_guard.rs index 9f3c127..6c95842 100644 --- a/e2e/anchor/src/generated/instructions/create_guard.rs +++ b/e2e/anchor/src/generated/instructions/create_guard.rs @@ -401,8 +401,8 @@ impl<'a, 'b> CreateGuardCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = CreateGuardInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/anchor/src/generated/instructions/execute.rs b/e2e/anchor/src/generated/instructions/execute.rs index d03b699..8e26f06 100644 --- a/e2e/anchor/src/generated/instructions/execute.rs +++ b/e2e/anchor/src/generated/instructions/execute.rs @@ -339,8 +339,8 @@ impl<'a, 'b> ExecuteCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = ExecuteInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/anchor/src/generated/instructions/initialize.rs b/e2e/anchor/src/generated/instructions/initialize.rs index 20262b9..dc6ecab 100644 --- a/e2e/anchor/src/generated/instructions/initialize.rs +++ b/e2e/anchor/src/generated/instructions/initialize.rs @@ -282,8 +282,8 @@ impl<'a, 'b> InitializeCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = InitializeInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/anchor/src/generated/instructions/update_guard.rs b/e2e/anchor/src/generated/instructions/update_guard.rs index 148d669..9ba000e 100644 --- a/e2e/anchor/src/generated/instructions/update_guard.rs +++ b/e2e/anchor/src/generated/instructions/update_guard.rs @@ -334,8 +334,8 @@ impl<'a, 'b> UpdateGuardCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = UpdateGuardInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/dummy/src/generated/instructions/instruction1.rs b/e2e/dummy/src/generated/instructions/instruction1.rs index 42efc54..3d6dee4 100644 --- a/e2e/dummy/src/generated/instructions/instruction1.rs +++ b/e2e/dummy/src/generated/instructions/instruction1.rs @@ -127,8 +127,8 @@ impl<'a, 'b> Instruction1Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = Instruction1InstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/dummy/src/generated/instructions/instruction2.rs b/e2e/dummy/src/generated/instructions/instruction2.rs index 35303a0..4f5df01 100644 --- a/e2e/dummy/src/generated/instructions/instruction2.rs +++ b/e2e/dummy/src/generated/instructions/instruction2.rs @@ -127,8 +127,8 @@ impl<'a, 'b> Instruction2Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = Instruction2InstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/dummy/src/generated/instructions/instruction3.rs b/e2e/dummy/src/generated/instructions/instruction3.rs index 7e47e31..191758c 100644 --- a/e2e/dummy/src/generated/instructions/instruction3.rs +++ b/e2e/dummy/src/generated/instructions/instruction3.rs @@ -131,8 +131,8 @@ impl<'a, 'b> Instruction3Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = Instruction3InstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/dummy/src/generated/instructions/instruction4.rs b/e2e/dummy/src/generated/instructions/instruction4.rs index ac3529e..0bf22d1 100644 --- a/e2e/dummy/src/generated/instructions/instruction4.rs +++ b/e2e/dummy/src/generated/instructions/instruction4.rs @@ -162,8 +162,8 @@ impl<'a, 'b> Instruction4Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = Instruction4InstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/dummy/src/generated/instructions/instruction5.rs b/e2e/dummy/src/generated/instructions/instruction5.rs index 0813ad1..e68cd09 100644 --- a/e2e/dummy/src/generated/instructions/instruction5.rs +++ b/e2e/dummy/src/generated/instructions/instruction5.rs @@ -163,8 +163,8 @@ impl<'a, 'b> Instruction5Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = Instruction5InstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/dummy/src/generated/instructions/instruction6.rs b/e2e/dummy/src/generated/instructions/instruction6.rs index ebf17ee..1cc0801 100644 --- a/e2e/dummy/src/generated/instructions/instruction6.rs +++ b/e2e/dummy/src/generated/instructions/instruction6.rs @@ -156,8 +156,8 @@ impl<'a, 'b> Instruction6Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = Instruction6InstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/dummy/src/generated/instructions/instruction7.rs b/e2e/dummy/src/generated/instructions/instruction7.rs index 22497f5..c65a607 100644 --- a/e2e/dummy/src/generated/instructions/instruction7.rs +++ b/e2e/dummy/src/generated/instructions/instruction7.rs @@ -168,8 +168,8 @@ impl<'a, 'b> Instruction7Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = Instruction7InstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/memo/src/generated/instructions/add_memo.rs b/e2e/memo/src/generated/instructions/add_memo.rs index 924d29e..2bea448 100644 --- a/e2e/memo/src/generated/instructions/add_memo.rs +++ b/e2e/memo/src/generated/instructions/add_memo.rs @@ -160,8 +160,8 @@ impl<'a, 'b> AddMemoCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = AddMemoInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/system/src/generated/instructions/advance_nonce_account.rs b/e2e/system/src/generated/instructions/advance_nonce_account.rs index e2608cb..053767c 100644 --- a/e2e/system/src/generated/instructions/advance_nonce_account.rs +++ b/e2e/system/src/generated/instructions/advance_nonce_account.rs @@ -217,8 +217,8 @@ impl<'a, 'b> AdvanceNonceAccountCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = AdvanceNonceAccountInstructionData::new() diff --git a/e2e/system/src/generated/instructions/allocate.rs b/e2e/system/src/generated/instructions/allocate.rs index e378940..a0d348c 100644 --- a/e2e/system/src/generated/instructions/allocate.rs +++ b/e2e/system/src/generated/instructions/allocate.rs @@ -188,8 +188,8 @@ impl<'a, 'b> AllocateCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = AllocateInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/system/src/generated/instructions/allocate_with_seed.rs b/e2e/system/src/generated/instructions/allocate_with_seed.rs index 4123d3e..cbe0182 100644 --- a/e2e/system/src/generated/instructions/allocate_with_seed.rs +++ b/e2e/system/src/generated/instructions/allocate_with_seed.rs @@ -245,8 +245,8 @@ impl<'a, 'b> AllocateWithSeedCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = AllocateWithSeedInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/system/src/generated/instructions/assign.rs b/e2e/system/src/generated/instructions/assign.rs index 70417e8..55913a5 100644 --- a/e2e/system/src/generated/instructions/assign.rs +++ b/e2e/system/src/generated/instructions/assign.rs @@ -192,8 +192,8 @@ impl<'a, 'b> AssignCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = AssignInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/system/src/generated/instructions/assign_with_seed.rs b/e2e/system/src/generated/instructions/assign_with_seed.rs index 7f9eaab..f15777f 100644 --- a/e2e/system/src/generated/instructions/assign_with_seed.rs +++ b/e2e/system/src/generated/instructions/assign_with_seed.rs @@ -234,8 +234,8 @@ impl<'a, 'b> AssignWithSeedCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = AssignWithSeedInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/system/src/generated/instructions/authorize_nonce_account.rs b/e2e/system/src/generated/instructions/authorize_nonce_account.rs index 28480eb..6b4f7e9 100644 --- a/e2e/system/src/generated/instructions/authorize_nonce_account.rs +++ b/e2e/system/src/generated/instructions/authorize_nonce_account.rs @@ -223,8 +223,8 @@ impl<'a, 'b> AuthorizeNonceAccountCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = AuthorizeNonceAccountInstructionData::new() diff --git a/e2e/system/src/generated/instructions/create_account.rs b/e2e/system/src/generated/instructions/create_account.rs index 1819b5e..9fb861a 100644 --- a/e2e/system/src/generated/instructions/create_account.rs +++ b/e2e/system/src/generated/instructions/create_account.rs @@ -228,8 +228,8 @@ impl<'a, 'b> CreateAccountCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = CreateAccountInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/system/src/generated/instructions/create_account_with_seed.rs b/e2e/system/src/generated/instructions/create_account_with_seed.rs index 4db9407..8dbb0ef 100644 --- a/e2e/system/src/generated/instructions/create_account_with_seed.rs +++ b/e2e/system/src/generated/instructions/create_account_with_seed.rs @@ -272,8 +272,8 @@ impl<'a, 'b> CreateAccountWithSeedCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = CreateAccountWithSeedInstructionData::new() diff --git a/e2e/system/src/generated/instructions/initialize_nonce_account.rs b/e2e/system/src/generated/instructions/initialize_nonce_account.rs index e304ae6..88995f1 100644 --- a/e2e/system/src/generated/instructions/initialize_nonce_account.rs +++ b/e2e/system/src/generated/instructions/initialize_nonce_account.rs @@ -255,8 +255,8 @@ impl<'a, 'b> InitializeNonceAccountCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = InitializeNonceAccountInstructionData::new() diff --git a/e2e/system/src/generated/instructions/transfer_sol.rs b/e2e/system/src/generated/instructions/transfer_sol.rs index bd43969..f55e6b5 100644 --- a/e2e/system/src/generated/instructions/transfer_sol.rs +++ b/e2e/system/src/generated/instructions/transfer_sol.rs @@ -208,8 +208,8 @@ impl<'a, 'b> TransferSolCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = TransferSolInstructionData::new().try_to_vec().unwrap(); diff --git a/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs b/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs index 4b17164..14614cd 100644 --- a/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs +++ b/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs @@ -256,8 +256,8 @@ impl<'a, 'b> TransferSolWithSeedCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = TransferSolWithSeedInstructionData::new() diff --git a/e2e/system/src/generated/instructions/upgrade_nonce_account.rs b/e2e/system/src/generated/instructions/upgrade_nonce_account.rs index 924aaa0..1a17b6d 100644 --- a/e2e/system/src/generated/instructions/upgrade_nonce_account.rs +++ b/e2e/system/src/generated/instructions/upgrade_nonce_account.rs @@ -165,8 +165,8 @@ impl<'a, 'b> UpgradeNonceAccountCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let data = UpgradeNonceAccountInstructionData::new() diff --git a/e2e/system/src/generated/instructions/withdraw_nonce_account.rs b/e2e/system/src/generated/instructions/withdraw_nonce_account.rs index 9172029..ec8a196 100644 --- a/e2e/system/src/generated/instructions/withdraw_nonce_account.rs +++ b/e2e/system/src/generated/instructions/withdraw_nonce_account.rs @@ -302,8 +302,8 @@ impl<'a, 'b> WithdrawNonceAccountCpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let mut data = WithdrawNonceAccountInstructionData::new() diff --git a/public/templates/instructionsCpiPage.njk b/public/templates/instructionsCpiPage.njk index a52993a..a9d5b4d 100644 --- a/public/templates/instructionsCpiPage.njk +++ b/public/templates/instructionsCpiPage.njk @@ -147,8 +147,8 @@ impl<'a, 'b> {{ instruction.name | pascalCase }}Cpi<'a, 'b> { remaining_accounts.iter().for_each(|remaining_account| { accounts.push(solana_instruction::AccountMeta { pubkey: *remaining_account.0.key, - is_signer: remaining_account.1, - is_writable: remaining_account.2, + is_writable: remaining_account.1, + is_signer: remaining_account.2, }) }); let {{ 'mut ' if hasArgs }}data = {{ instruction.name | pascalCase }}InstructionData::new().try_to_vec().unwrap();