Skip to content

Commit 48daf47

Browse files
committed
Update advance_nonce_account.rs
1 parent 440b2a2 commit 48daf47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

programs/system/src/instructions/advance_nonce_account.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ impl AdvanceNonceAccount<'_> {
3737
AccountMeta::readonly_signer(self.authority.key()),
3838
];
3939

40-
// instruction
40+
// instruction data uses 4-byte LE discriminator expected by the system program
41+
const DATA: [u8; 4] = [4, 0, 0, 0];
4142
let instruction = Instruction {
4243
program_id: &crate::ID,
4344
accounts: &account_metas,
44-
data: &[4],
45+
data: &DATA,
4546
};
4647

4748
invoke_signed(

0 commit comments

Comments
 (0)