File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
1
//! Import implementations
2
2
3
- use std:: cmp:: max;
4
3
use std:: marker:: PhantomData ;
5
4
6
5
use cosmwasm_crypto:: {
@@ -737,12 +736,7 @@ pub fn do_ed25519_batch_verify<
737
736
} else {
738
737
& data. gas_config . ed25519_batch_verify_cost
739
738
} ;
740
- let gas_info = GasInfo :: with_cost ( max (
741
- // charge for each signature
742
- gas_cost. total_cost ( signatures. len ( ) as u64 ) ,
743
- // but ensure we charge something even if there are no signatures
744
- data. gas_config . ed25519_verify_cost ,
745
- ) ) ;
739
+ let gas_info = GasInfo :: with_cost ( gas_cost. total_cost ( signatures. len ( ) as u64 ) ) ;
746
740
process_gas_info ( data, & mut store, gas_info) ?;
747
741
let result = ed25519_batch_verify ( & mut OsRng , & messages, & signatures, & public_keys) ;
748
742
let code = match result {
You can’t perform that action at this time.
0 commit comments