Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: toofooboo <[email protected]>
  • Loading branch information
toofooboo committed Dec 20, 2024
1 parent 996d70b commit 89a6137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func ParseQueryParams(r *http.Request) (QueryParams, error) {
}

func GetChainId(c *gin.Context) (*big.Int, error) {
// TODO: check chainId agains the chain-service to ensure it's valid
// TODO: check chainId against the chain-service to ensure it's valid
chainId := c.Param("chainId")
chainIdInt, err := strconv.ParseUint(chainId, 10, 64)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ var disallowedPatterns = []string{
`(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)`,
}

// validateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
// ValidateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
func ValidateQuery(query string) error {
// Check for disallowed patterns
for _, pattern := range disallowedPatterns {
Expand Down

0 comments on commit 89a6137

Please sign in to comment.