From 7af07bd08f4eed66fbc9eee47762fd2c3365c89f Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Wed, 11 Dec 2024 11:28:04 +0100 Subject: [PATCH] fix(api): add time.Duration and rsmt2d.Axis types (#3994) --- api/docgen/examples.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/docgen/examples.go b/api/docgen/examples.go index 8d56506d1b..640cfe8ab3 100644 --- a/api/docgen/examples.go +++ b/api/docgen/examples.go @@ -8,6 +8,7 @@ import ( "errors" "fmt" "reflect" + "time" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" @@ -63,6 +64,7 @@ var ExampleValues = map[reflect.Type]interface{}{ reflect.TypeOf(float64(42)): float64(42), reflect.TypeOf(true): true, reflect.TypeOf([]byte{}): []byte("byte array"), + reflect.TypeOf(time.Duration(0)): time.Second, reflect.TypeOf(node.Full): node.Full, reflect.TypeOf(auth.Permission("admin")): auth.Permission("admin"), reflect.TypeOf(byzantine.BadEncoding): byzantine.BadEncoding, @@ -188,6 +190,8 @@ func init() { state.WithFeeGranterAddress("celestia1hakc56ax66ypjcmwj8w6hyr2c4g8cfs3wesguc"), ) addToExampleValues(txConfig) + + addToExampleValues(rsmt2d.Row) } func addToExampleValues(v interface{}) {