Skip to content

Commit 313d5ab

Browse files
authored
Merge pull request #129 from toofooboo/main
chore: fix some comments
2 parents c28b292 + 89a6137 commit 313d5ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func ParseQueryParams(r *http.Request) (QueryParams, error) {
130130
}
131131

132132
func GetChainId(c *gin.Context) (*big.Int, error) {
133-
// TODO: check chainId agains the chain-service to ensure it's valid
133+
// TODO: check chainId against the chain-service to ensure it's valid
134134
chainId := c.Param("chainId")
135135
chainIdInt, err := strconv.ParseUint(chainId, 10, 64)
136136
if err != nil {

internal/common/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ var disallowedPatterns = []string{
178178
`(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)`,
179179
}
180180

181-
// validateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
181+
// ValidateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
182182
func ValidateQuery(query string) error {
183183
// Check for disallowed patterns
184184
for _, pattern := range disallowedPatterns {

0 commit comments

Comments
 (0)