We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79163b3 commit 91ed66fCopy full SHA for 91ed66f
bin/client/src/precompiles/bls12.rs
@@ -96,6 +96,16 @@ mod tests {
96
use super::*;
97
use alloc::vec;
98
99
+ #[test]
100
+ fn test_fpvm_bls12_offset() {
101
+ let input = Bytes::from(vec![0u8; INPUT_LENGTH + 1]);
102
+ let gas_limit = PAIRING_OFFSET_BASE;
103
+ let err = PrecompileError::Other(
104
+ "Pairing input length should be multiple of 384, was 385".to_string(),
105
+ );
106
+ assert_eq!(fpvm_bls12_pairing(&input, gas_limit), Err(err.into()));
107
+ }
108
+
109
#[test]
110
fn test_fpvm_bls12_out_of_gas() {
111
let input = Bytes::from(vec![0u8; INPUT_LENGTH * 2]);
0 commit comments