From 89ba62f561cff036d2a173b28f71677eede30a64 Mon Sep 17 00:00:00 2001 From: strmfos <155266597+strmfos@users.noreply.github.com> Date: Sat, 9 Aug 2025 20:04:38 +0200 Subject: [PATCH] refactor: rename variable to avoid shadowing built-in int type --- common/math/integer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/math/integer.go b/common/math/integer.go index da01c0a08..38ba7baf0 100644 --- a/common/math/integer.go +++ b/common/math/integer.go @@ -54,11 +54,11 @@ func (i *HexOrDecimal64) UnmarshalJSON(input []byte) error { // UnmarshalText implements encoding.TextUnmarshaler. func (i *HexOrDecimal64) UnmarshalText(input []byte) error { - int, ok := ParseUint64(string(input)) + val, ok := ParseUint64(string(input)) if !ok { return fmt.Errorf("invalid hex or decimal integer %q", input) } - *i = HexOrDecimal64(int) + *i = HexOrDecimal64(val) return nil }