From 25c21aaa1b3d92fc36cc6c63c1b753f90227760a Mon Sep 17 00:00:00 2001 From: Charles Dusek Date: Sun, 9 Jun 2024 19:01:01 -0500 Subject: [PATCH] Add intType --- testutil/nullify/nullify.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testutil/nullify/nullify.go b/testutil/nullify/nullify.go index 3b968c09..0b94e94b 100644 --- a/testutil/nullify/nullify.go +++ b/testutil/nullify/nullify.go @@ -11,6 +11,7 @@ import ( var ( coinType = reflect.TypeOf(sdk.Coin{}) coinsType = reflect.TypeOf(sdk.Coins{}) + intType = reflect.TypeOf(sdk.NewIntFromUint64(1)) ) // Fill analyze all struct fields and slices with @@ -45,6 +46,10 @@ func Fill(x interface{}) interface{} { coins := reflect.New(coinsType).Interface() s := reflect.ValueOf(coins).Elem() f.Set(s) + case intType: + int := reflect.New(intType).Interface() + s := reflect.ValueOf(int).Elem() + f.Set(s) default: objPt := reflect.NewAt(f.Type(), unsafe.Pointer(f.UnsafeAddr())).Interface() s := Fill(objPt)