Skip to content

Commit

Permalink
fixed build after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
VladasZ committed Sep 13, 2023
1 parent 5776e0b commit 8cb335d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contract/src/jar/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ impl Contract {
.get(account_id)
.map(|jars| *jars.iter().max().unwrap_or_else(|| env::panic_str("Jar is empty.")));

let hash = self.get_ticket_hash(account_id, amount, ticket, last_jar_index);
let is_signature_valid = self.verify_signature(&signature.0, pk, &hash);
let hash = Self::get_ticket_hash(account_id, amount, ticket, last_jar_index);
let is_signature_valid = Self::verify_signature(&signature.0, pk, &hash);

require!(is_signature_valid, "Not matching signature");

Expand Down

0 comments on commit 8cb335d

Please sign in to comment.