mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Add lint checks: gofmt, goimports, golint
- gofmt - Gofmt checks whether code was gofmt-ed. By default this tool runs
with -s option to check for code simplification
- goimports - Goimports does everything that gofmt does. Additionally it checks
unused imports
- golint - Golint differs from gofmt. Gofmt reformats Go source code, whereas
golint prints out style mistakes
- checks the uncommented exported functions & types
Update the code to fix the lint checks.
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"math/big"
|
||||
)
|
||||
|
||||
// ZKInputs represents the inputs that will be used to generate the zkSNARK
|
||||
// proof
|
||||
type ZKInputs struct {
|
||||
InitialIdx uint64
|
||||
OldStRoot Hash
|
||||
@@ -19,7 +21,7 @@ type ZKInputs struct {
|
||||
TxData []*big.Int
|
||||
|
||||
FromIdx []uint64
|
||||
ToIdX []uint64
|
||||
ToIdX []uint64 //nolint:golint
|
||||
ToAx []*big.Int
|
||||
ToAy []*big.Int
|
||||
ToEthAddr []*big.Int
|
||||
@@ -55,10 +57,7 @@ type ZKInputs struct {
|
||||
OldValue2 []*big.Int
|
||||
}
|
||||
|
||||
// CallDataForge TBD
|
||||
type CallDataForge struct {
|
||||
// TBD
|
||||
}
|
||||
|
||||
type ExitTreeLeaf struct {
|
||||
// TBD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user