Fail secp256k1 if the instruction data looks incorrect (#19300)
This commit is contained in:
@ -44,7 +44,7 @@ pub mod test {
|
||||
Hash::default(),
|
||||
);
|
||||
|
||||
assert!(tx.verify_precompiles(false).is_ok());
|
||||
assert!(tx.verify_precompiles(false, true).is_ok());
|
||||
|
||||
let index = thread_rng().gen_range(0, secp_instruction.data.len());
|
||||
secp_instruction.data[index] = secp_instruction.data[index].wrapping_add(12);
|
||||
@ -54,6 +54,6 @@ pub mod test {
|
||||
&[&mint_keypair],
|
||||
Hash::default(),
|
||||
);
|
||||
assert!(tx.verify_precompiles(false).is_err());
|
||||
assert!(tx.verify_precompiles(false, true).is_err());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user