We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b39fa commit fe37b8eCopy full SHA for fe37b8e
programs/solana/programs/ics07-tendermint/src/instructions/pre_verify_signatures.rs
@@ -39,7 +39,7 @@ fn verify_ed25519_from_sysvar(
39
const ED25519_IX_INDEX: usize = 0;
40
let ix = ix_sysvar::load_instruction_at_checked(ED25519_IX_INDEX, ix_sysvar)?;
41
42
- if ix.program_id != Pubkey::from(ed25519_program::ID.to_bytes())
+ if ix.program_id.as_ref() != ed25519_program::ID.as_ref()
43
|| ix.data.len() < ED25519_HEADER_SIZE + 96
44
|| ix.data[ED25519_NUM_SIGNATURES_OFFSET] != 1
45
{
0 commit comments