Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-inj committed Jan 23, 2025
1 parent 8244b7d commit e8625f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion eip712_cosmos.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sdk_go
package sdk

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion eip712_cosmos_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sdk_go
package sdk

import (
"encoding/json"
Expand Down
8 changes: 4 additions & 4 deletions typeddata/typed_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -997,12 +997,12 @@ func traverseFields(

if prefix == typeDefPrefix {
if len(typeMap[rootType]) == n {
return
return nil
}
} else {
typeDef := sanitizeTypedef(prefix)
if len(typeMap[typeDef]) == n {
return
return nil
}
}

Expand Down Expand Up @@ -1035,7 +1035,7 @@ func traverseFields(
err = cdc.UnpackAny(any, &anyWrapper.Value)
if err != nil {
err = errors.Wrap(err, "failed to unpack Any in msg struct")
return
return err
}

fieldType = reflect.TypeOf(anyWrapper)
Expand Down Expand Up @@ -1142,7 +1142,7 @@ func traverseFields(

err = traverseFields(cdc, typeMap, rootType, fieldPrefix, fieldType, field)
if err != nil {
return
return errors.WithStack(err)
}

continue
Expand Down

0 comments on commit e8625f9

Please sign in to comment.