Skip to content

Commit 954546a

Browse files
authored
Merge pull request #501 from multiversx/code-scanning
fix code scanning issues
2 parents b798788 + becd38e commit 954546a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

common/options.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package common
22

33
import (
44
"encoding/hex"
5+
"fmt"
56
"net/url"
67
"strconv"
78

@@ -141,10 +142,10 @@ func BuildUrlWithAccountQueryOptions(path string, options AccountQueryOptions) s
141142
query.Set(UrlParameterOnFinalBlock, "true")
142143
}
143144
if options.OnStartOfEpoch.HasValue {
144-
query.Set(UrlParameterOnStartOfEpoch, strconv.Itoa(int(options.OnStartOfEpoch.Value)))
145+
query.Set(UrlParameterOnStartOfEpoch, fmt.Sprintf("%d", options.OnStartOfEpoch.Value))
145146
}
146147
if options.BlockNonce.HasValue {
147-
query.Set(UrlParameterBlockNonce, strconv.FormatUint(options.BlockNonce.Value, 10))
148+
query.Set(UrlParameterBlockNonce, fmt.Sprintf("%d", options.BlockNonce.Value))
148149
}
149150
if len(options.BlockHash) > 0 {
150151
query.Set(UrlParameterBlockHash, hex.EncodeToString(options.BlockHash))

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/multiversx/mx-chain-proxy-go
33
go 1.23
44

55
require (
6-
github.com/gin-contrib/cors v1.4.0
6+
github.com/gin-contrib/cors v1.6.0
77
github.com/gin-contrib/pprof v1.4.0
88
github.com/gin-contrib/static v0.0.1
99
github.com/gin-gonic/gin v1.10.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
4444
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
4545
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
4646
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
47-
github.com/gin-contrib/cors v1.4.0 h1:oJ6gwtUl3lqV0WEIwM/LxPF1QZ5qe2lGWdY2+bz7y0g=
48-
github.com/gin-contrib/cors v1.4.0/go.mod h1:bs9pNM0x/UsmHPBWT2xZz9ROh8xYjYkiURUfmBoMlcs=
47+
github.com/gin-contrib/cors v1.6.0 h1:0Z7D/bVhE6ja07lI8CTjTonp6SB07o8bNuFyRbsBUQg=
48+
github.com/gin-contrib/cors v1.6.0/go.mod h1:cI+h6iOAyxKRtUtC6iF/Si1KSFvGm/gK+kshxlCi8ro=
4949
github.com/gin-contrib/pprof v1.4.0 h1:XxiBSf5jWZ5i16lNOPbMTVdgHBdhfGRD5PZ1LWazzvg=
5050
github.com/gin-contrib/pprof v1.4.0/go.mod h1:RrehPJasUVBPK6yTUwOl8/NP6i0vbUgmxtis+Z5KE90=
5151
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=

0 commit comments

Comments
 (0)