From 3d92772d2383fca23412b8c4b5c6417478c98afc Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 17 Mar 2023 09:42:21 -0400 Subject: [PATCH] Update crates/aiken-lang/src/tipo/infer.rs Co-authored-by: Matthias Benkort <5680256+KtorZ@users.noreply.github.com> --- crates/aiken-lang/src/tipo/infer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/aiken-lang/src/tipo/infer.rs b/crates/aiken-lang/src/tipo/infer.rs index 25bf7458..7c029681 100644 --- a/crates/aiken-lang/src/tipo/infer.rs +++ b/crates/aiken-lang/src/tipo/infer.rs @@ -312,8 +312,8 @@ fn infer_definition( || other_typed_fun.arguments.len() > 3 { return Err(Error::IncorrectValidatorArity { - count: typed_fun.arguments.len() as u32, - location: typed_fun.location, + count: other_typed_fun.arguments.len() as u32, + location: other_typed_fun.location, }); }