Skip to content

Commit

Permalink
Fix var name (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Oct 9, 2022
1 parent 73e258a commit 2499ed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auth_advanced/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ impl IncrementContract {
}
}

fn verify_and_consume_nonce(env: &Env, auth: &Signature, nonce: &BigInt) {
match auth {
fn verify_and_consume_nonce(env: &Env, sig: &Signature, nonce: &BigInt) {
match sig {
Signature::Invoker => {
if BigInt::zero(env) != nonce {
panic_error!(env, Error::IncorrectNonceForInvoker);
}
}
Signature::Ed25519(_) | Signature::Account(_) => {
let id = auth.identifier(env);
let id = sig.identifier(env);
if nonce != &get_nonce(env, &id) {
panic_error!(env, Error::IncorrectNonce);
}
Expand Down

0 comments on commit 2499ed4

Please sign in to comment.