Skip to content

Commit

Permalink
fix(api): add time.Duration and rsmt2d.Axis types (#3994)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Dec 11, 2024
1 parent ac5d7a7 commit 7af07bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/docgen/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"errors"
"fmt"
"reflect"
"time"

"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -188,6 +190,8 @@ func init() {
state.WithFeeGranterAddress("celestia1hakc56ax66ypjcmwj8w6hyr2c4g8cfs3wesguc"),
)
addToExampleValues(txConfig)

addToExampleValues(rsmt2d.Row)
}

func addToExampleValues(v interface{}) {
Expand Down

0 comments on commit 7af07bd

Please sign in to comment.