Skip to content

Commit 9f54c4b

Browse files
committed
Update generated code
1 parent 39f74ac commit 9f54c4b

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl AddMemo {
2525
args: AddMemoInstructionArgs,
2626
remaining_accounts: &[solana_program::instruction::AccountMeta],
2727
) -> solana_program::instruction::Instruction {
28-
let mut accounts = Vec::with_capacity(0 + remaining_accounts.len());
28+
let mut accounts = Vec::with_capacity(remaining_accounts.len());
2929
accounts.extend_from_slice(remaining_accounts);
3030
let mut data = AddMemoInstructionData::new().try_to_vec().unwrap();
3131
let mut args = args.try_to_vec().unwrap();
@@ -159,7 +159,7 @@ impl<'a, 'b> AddMemoCpi<'a, 'b> {
159159
bool,
160160
)],
161161
) -> solana_program::entrypoint::ProgramResult {
162-
let mut accounts = Vec::with_capacity(0 + remaining_accounts.len());
162+
let mut accounts = Vec::with_capacity(remaining_accounts.len());
163163
remaining_accounts.iter().for_each(|remaining_account| {
164164
accounts.push(solana_program::instruction::AccountMeta {
165165
pubkey: *remaining_account.0.key,
@@ -176,7 +176,7 @@ impl<'a, 'b> AddMemoCpi<'a, 'b> {
176176
accounts,
177177
data,
178178
};
179-
let mut account_infos = Vec::with_capacity(0 + 1 + remaining_accounts.len());
179+
let mut account_infos = Vec::with_capacity(1 + remaining_accounts.len());
180180
account_infos.push(self.__program.clone());
181181
remaining_accounts
182182
.iter()

packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl<'a, 'b> AdvanceNonceAccountCpi<'a, 'b> {
237237
accounts,
238238
data,
239239
};
240-
let mut account_infos = Vec::with_capacity(3 + 1 + remaining_accounts.len());
240+
let mut account_infos = Vec::with_capacity(4 + remaining_accounts.len());
241241
account_infos.push(self.__program.clone());
242242
account_infos.push(self.nonce_account.clone());
243243
account_infos.push(self.recent_blockhashes_sysvar.clone());

packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl<'a, 'b> AllocateCpi<'a, 'b> {
205205
accounts,
206206
data,
207207
};
208-
let mut account_infos = Vec::with_capacity(1 + 1 + remaining_accounts.len());
208+
let mut account_infos = Vec::with_capacity(2 + remaining_accounts.len());
209209
account_infos.push(self.__program.clone());
210210
account_infos.push(self.new_account.clone());
211211
remaining_accounts

packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl<'a, 'b> AllocateWithSeedCpi<'a, 'b> {
256256
accounts,
257257
data,
258258
};
259-
let mut account_infos = Vec::with_capacity(2 + 1 + remaining_accounts.len());
259+
let mut account_infos = Vec::with_capacity(3 + remaining_accounts.len());
260260
account_infos.push(self.__program.clone());
261261
account_infos.push(self.new_account.clone());
262262
account_infos.push(self.base_account.clone());

packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl<'a, 'b> AssignCpi<'a, 'b> {
209209
accounts,
210210
data,
211211
};
212-
let mut account_infos = Vec::with_capacity(1 + 1 + remaining_accounts.len());
212+
let mut account_infos = Vec::with_capacity(2 + remaining_accounts.len());
213213
account_infos.push(self.__program.clone());
214214
account_infos.push(self.account.clone());
215215
remaining_accounts

packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl<'a, 'b> AssignWithSeedCpi<'a, 'b> {
248248
accounts,
249249
data,
250250
};
251-
let mut account_infos = Vec::with_capacity(2 + 1 + remaining_accounts.len());
251+
let mut account_infos = Vec::with_capacity(3 + remaining_accounts.len());
252252
account_infos.push(self.__program.clone());
253253
account_infos.push(self.account.clone());
254254
account_infos.push(self.base_account.clone());

packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl<'a, 'b> AuthorizeNonceAccountCpi<'a, 'b> {
239239
accounts,
240240
data,
241241
};
242-
let mut account_infos = Vec::with_capacity(2 + 1 + remaining_accounts.len());
242+
let mut account_infos = Vec::with_capacity(3 + remaining_accounts.len());
243243
account_infos.push(self.__program.clone());
244244
account_infos.push(self.nonce_account.clone());
245245
account_infos.push(self.nonce_authority.clone());

packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl<'a, 'b> CreateAccountCpi<'a, 'b> {
247247
accounts,
248248
data,
249249
};
250-
let mut account_infos = Vec::with_capacity(2 + 1 + remaining_accounts.len());
250+
let mut account_infos = Vec::with_capacity(3 + remaining_accounts.len());
251251
account_infos.push(self.__program.clone());
252252
account_infos.push(self.payer.clone());
253253
account_infos.push(self.new_account.clone());

packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ impl<'a, 'b> CreateAccountWithSeedCpi<'a, 'b> {
290290
accounts,
291291
data,
292292
};
293-
let mut account_infos = Vec::with_capacity(3 + 1 + remaining_accounts.len());
293+
let mut account_infos = Vec::with_capacity(4 + remaining_accounts.len());
294294
account_infos.push(self.__program.clone());
295295
account_infos.push(self.payer.clone());
296296
account_infos.push(self.new_account.clone());

packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl<'a, 'b> InitializeNonceAccountCpi<'a, 'b> {
268268
accounts,
269269
data,
270270
};
271-
let mut account_infos = Vec::with_capacity(3 + 1 + remaining_accounts.len());
271+
let mut account_infos = Vec::with_capacity(4 + remaining_accounts.len());
272272
account_infos.push(self.__program.clone());
273273
account_infos.push(self.nonce_account.clone());
274274
account_infos.push(self.recent_blockhashes_sysvar.clone());

0 commit comments

Comments
 (0)