Skip to content

Commit

Permalink
some asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz2891 committed Oct 3, 2024
1 parent 6683697 commit 7a023f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/processor.sw
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ use ::core::{
/// * `config` - Configuration of the payload processing.
/// * `payload_bytes` - Network-specific byte-list of the payload to be processed.
pub fn process_input(bytes: Bytes, config: Config) -> (Vec<u256>, u64) {
assert(config.signers.len() > 0);

let payload = Payload::from_bytes(bytes);
let timestamp = config.validate_timestamps(payload);

Expand Down

0 comments on commit 7a023f8

Please sign in to comment.