From a96ed79640b410688df114513541c2c4aba2d3aa Mon Sep 17 00:00:00 2001 From: Viacheslav Gonkivskyi Date: Wed, 31 May 2023 10:16:25 +0200 Subject: [PATCH] docgen: update examples with proof type --- api/docgen/examples.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/docgen/examples.go b/api/docgen/examples.go index ae65501ba6..b7f9b46a01 100644 --- a/api/docgen/examples.go +++ b/api/docgen/examples.go @@ -7,6 +7,7 @@ import ( "reflect" "cosmossdk.io/math" + "github.com/celestiaorg/nmt" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/filecoin-project/go-jsonrpc/auth" "github.com/libp2p/go-libp2p/core/network" @@ -20,6 +21,7 @@ import ( "github.com/celestiaorg/go-fraud" "github.com/celestiaorg/rsmt2d" + "github.com/celestiaorg/celestia-node/blob" "github.com/celestiaorg/celestia-node/das" "github.com/celestiaorg/celestia-node/header" "github.com/celestiaorg/celestia-node/nodebuilder/node" @@ -128,6 +130,11 @@ func init() { Addrs: []multiaddr.Multiaddr{ma}, } addToExampleValues(addrInfo) + + proof := nmt.NewInclusionProof(0, 4, [][]byte{[]byte("test")}, true) + blobProof := &blob.Proof{&proof} + addToExampleValues(blobProof) + } func addToExampleValues(v interface{}) {