From 0355cba45a21d03c30eab3bf34ebafa1ccc15006 Mon Sep 17 00:00:00 2001 From: ilya-korotya Date: Fri, 13 Sep 2024 12:50:28 +0200 Subject: [PATCH] update golanci.yaml file; fix linter --- .golangci.yml | 4 ---- packagemanager/packagemanager.go | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a89c11d..f905aa8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -33,17 +33,13 @@ linters: - revive - govet - unconvert - - structcheck - gas - gocyclo - dupl - misspell - unparam - - varcheck - - deadcode - typecheck - ineffassign - - varcheck - stylecheck - gochecknoinits - exportloopref diff --git a/packagemanager/packagemanager.go b/packagemanager/packagemanager.go index 7d204dd..04c1fda 100644 --- a/packagemanager/packagemanager.go +++ b/packagemanager/packagemanager.go @@ -76,6 +76,7 @@ func (s *state) verify(_ circuits.CircuitID, pubsignals []string) error { return errors.Errorf("error getting global state info by state '%s': %v", globalState, err) } + // to process states from private networks // if (big.NewInt(0)).Cmp(globalStateInfo.CreatedAtTimestamp) == 0 { // return errors.Errorf("root %s doesn't exist in smart contract", // globalState.String())