Skip to content

Commit 05f74a9

Browse files
authored
Update advance_nonce_account.rs (#271)
* Update advance_nonce_account.rs * Update upgrade_nonce_account - Using array slices directly * Keeping existing comment
1 parent 440b2a2 commit 05f74a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

programs/system/src/instructions/advance_nonce_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl AdvanceNonceAccount<'_> {
4141
let instruction = Instruction {
4242
program_id: &crate::ID,
4343
accounts: &account_metas,
44-
data: &[4],
44+
data: &[4, 0, 0, 0],
4545
};
4646

4747
invoke_signed(

programs/system/src/instructions/upgrade_nonce_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl UpgradeNonceAccount<'_> {
2525
let instruction = Instruction {
2626
program_id: &crate::ID,
2727
accounts: &account_metas,
28-
data: &[12],
28+
data: &[12, 0, 0, 0],
2929
};
3030

3131
invoke(&instruction, &[self.account])

0 commit comments

Comments
 (0)