From 930e4f115cce190b84f7a8f772beefd42465d476 Mon Sep 17 00:00:00 2001 From: russcoss Date: Mon, 6 Oct 2025 11:50:03 +0800 Subject: [PATCH] chore: fix some inconsistent function name in comment Signed-off-by: russcoss --- math/dec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math/dec.go b/math/dec.go index ad441b722..b198ae2e0 100644 --- a/math/dec.go +++ b/math/dec.go @@ -207,7 +207,7 @@ func NewDecFinite(coeff int64, exp int32) Dec { return res } -// NewDec takes a cosmos `sdkmath.Int` and turns it into a Dec +// NewDecFromSdkInt takes a cosmos `sdkmath.Int` and turns it into a Dec // it converts via strings and throws an error if the string // is unable to be parsed func NewDecFromSdkInt(x sdkmath.Int) (Dec, error) { @@ -215,7 +215,7 @@ func NewDecFromSdkInt(x sdkmath.Int) (Dec, error) { return NewDecFromString(strRep) } -// NewDec takes a cosmos `sdkmath.LegacyDec` and turns it into a Dec +// NewDecFromSdkLegacyDec takes a cosmos `sdkmath.LegacyDec` and turns it into a Dec // it converts via strings and throws an error if the string // is unable to be parsed func NewDecFromSdkLegacyDec(x sdkmath.LegacyDec) (Dec, error) {