@@ -64,7 +64,7 @@ fn bls_signature_validation_run(input: &Bytes, gas_limit: u64) -> PrecompileResu
64
64
if ( pub_keys. len ( ) == 1 && !bls:: verify ( & pub_keys[ 0 ] , msg_hash, signature, & BLS_DST . to_vec ( ) ) )
65
65
|| !bls:: aggregate_verify ( pub_keys, msg_hashes, signature, & BLS_DST . to_vec ( ) )
66
66
{
67
- output = Bytes :: from ( vec ! [ 0 ] ) ;
67
+ output = Bytes :: from ( vec ! [ ] ) ;
68
68
}
69
69
70
70
Ok ( PrecompileOutput :: new ( cost, output) )
@@ -118,7 +118,7 @@ mod tests {
118
118
input. extend_from_slice ( & signature) ;
119
119
input. extend_from_slice ( & pub_key) ;
120
120
121
- let excepted_output = Bytes :: from ( vec ! [ 0 ] ) ;
121
+ let excepted_output = Bytes :: from ( vec ! [ ] ) ;
122
122
let result = match bls_signature_validation_run ( & Bytes :: from ( input. clone ( ) ) , 100_000_000 ) {
123
123
Ok ( o) => o. bytes ,
124
124
Err ( e) => panic ! ( "BLS signature validation failed, {:?}" , e) ,
@@ -187,7 +187,7 @@ mod tests {
187
187
input. extend_from_slice ( & pub_key1) ;
188
188
input. extend_from_slice ( & pub_key2) ;
189
189
input. extend_from_slice ( & pub_key3) ;
190
- let excepted_output = Bytes :: from ( vec ! [ 0 ] ) ;
190
+ let excepted_output = Bytes :: from ( vec ! [ ] ) ;
191
191
let result = match bls_signature_validation_run ( & Bytes :: from ( input. clone ( ) ) , 100_000_000 ) {
192
192
Ok ( o) => o. bytes ,
193
193
Err ( e) => panic ! ( "BLS signature validation failed, {:?}" , e) ,
@@ -242,7 +242,7 @@ mod tests {
242
242
input. extend_from_slice ( & pub_key1) ;
243
243
input. extend_from_slice ( & pub_key2) ;
244
244
input. extend_from_slice ( & pub_key3) ;
245
- let excepted_output = Bytes :: from ( vec ! [ 0 ] ) ;
245
+ let excepted_output = Bytes :: from ( vec ! [ ] ) ;
246
246
let result = match bls_signature_validation_run ( & Bytes :: from ( input. clone ( ) ) , 100_000_000 ) {
247
247
Ok ( o) => o. bytes ,
248
248
Err ( e) => panic ! ( "BLS signature validation failed, {:?}" , e) ,
0 commit comments