From 9c9f09521cd5a45f45c24a2eee2c4f1442b11d46 Mon Sep 17 00:00:00 2001 From: DavePearce Date: Mon, 9 Dec 2024 14:05:37 +1300 Subject: [PATCH] Fix linting --- pkg/corset/translator.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/corset/translator.go b/pkg/corset/translator.go index 4525551..87e7a6b 100644 --- a/pkg/corset/translator.go +++ b/pkg/corset/translator.go @@ -347,7 +347,9 @@ func (t *translator) translateExpressionsInModule(exprs []Expr, module string) ( func (t *translator) translateExpressionInModule(expr Expr, module string, shift int) (hir.Expr, []SyntaxError) { if e, ok := expr.(*Constant); ok { var val fr.Element + // Initialise field from bigint val.SetBigInt(&e.Val) + // return &hir.Constant{Val: val}, nil } else if v, ok := expr.(*Add); ok { args, errs := t.translateExpressionsInModule(v.Args, module) @@ -423,7 +425,8 @@ func (t *translator) translateShiftInModule(expr *Shift, module string, shift in return t.translateExpressionInModule(expr.Arg, module, shift+int(constant.Int64())) } -func (t *translator) translateVariableAccessInModule(expr *VariableAccess, module string, shift int) (hir.Expr, []SyntaxError) { +func (t *translator) translateVariableAccessInModule(expr *VariableAccess, module string, + shift int) (hir.Expr, []SyntaxError) { if binding, ok := expr.Binding().(*ColumnBinding); ok { // Lookup column binding cinfo := t.env.Column(binding.module, expr.Name())