From 2499ed4b6b185ac8959ad90c465728ace01e3922 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Sat, 8 Oct 2022 21:46:38 -0700 Subject: [PATCH] Fix var name (#145) --- auth_advanced/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth_advanced/src/lib.rs b/auth_advanced/src/lib.rs index 094b0366..3d40fd97 100644 --- a/auth_advanced/src/lib.rs +++ b/auth_advanced/src/lib.rs @@ -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); }