From e948f68136acd2d1a05b35fefaa37796dafa65e1 Mon Sep 17 00:00:00 2001 From: Lee ByeongJun Date: Thu, 31 Oct 2024 13:34:14 +0900 Subject: [PATCH] id -> funcName --- gnovm/pkg/gnolang/preprocess.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnovm/pkg/gnolang/preprocess.go b/gnovm/pkg/gnolang/preprocess.go index a0bd6c82556..2f2f8540aa6 100644 --- a/gnovm/pkg/gnolang/preprocess.go +++ b/gnovm/pkg/gnolang/preprocess.go @@ -2471,8 +2471,8 @@ func evalStaticTypeOf(store Store, last BlockNode, x Expr) Type { func getFunctionName(x Expr) string { switch expr := x.(type) { case *CallExpr: - if id, ok := expr.Func.(*NameExpr); ok { - return string(id.Name) + if funcName, ok := expr.Func.(*NameExpr); ok { + return string(funcName.Name) } } return ""