Skip to content

Commit

Permalink
lint: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Teja2045 committed Sep 19, 2024
1 parent 5ae06ae commit 4dc9584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions relayer/avail/light_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func NewLightClient(lightClientURL string, httpClient *http_client.Handler) *Lig
LightClientURL: lightClientURL,
}
}

func (lc *LightClient) IsDataAvailable(data []byte, availBlockHeight int) (bool, error) {
availBlock, err := lc.GetBlock(availBlockHeight)
if err != nil {
Expand Down
3 changes: 0 additions & 3 deletions relayer/submit_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import (
)

func (r *Relayer) SubmitDataToAvailClient(data []byte, blocks []int64) (avail.BlockMetaData, error) {

blockInfo, err := r.availDAClient.Submit(data)

if err != nil {
r.logger.Error("Error while posting block(s) to Avail DA",
"height_start", blocks[0],
Expand All @@ -35,7 +33,6 @@ func (r *Relayer) SubmitDataToAvailClient(data []byte, blocks []int64) (avail.Bl

// IsDataAvailable is to query the avail light client and check if the data is made available at the given height
func (r *Relayer) IsDataAvailable(ctx sdk.Context, from, to, availHeight uint64) (bool, error) {

var blocks []int64
for i := from; i <= to; i++ {
blocks = append(blocks, int64(i))
Expand Down

0 comments on commit 4dc9584

Please sign in to comment.