diff --git a/modules/actions/types/handler.go b/modules/actions/types/handler.go index a57c8d332..e07fae236 100644 --- a/modules/actions/types/handler.go +++ b/modules/actions/types/handler.go @@ -1,8 +1,6 @@ package types import ( - "fmt" - "github.com/forbole/juno/v5/node" modulestypes "github.com/forbole/bdjuno/v4/modules/types" @@ -25,11 +23,7 @@ func NewContext(node node.Node, sources *modulestypes.Sources) *Context { // GetHeight uses the lastest height when the input height is empty from graphql request func (c *Context) GetHeight(payload *Payload) (int64, error) { if payload == nil || payload.Input.Height == 0 { - latestHeight, err := c.node.LatestHeight() - if err != nil { - return 0, fmt.Errorf("error while getting chain latest block height: %s", err) - } - return latestHeight, nil + return 0, nil } return payload.Input.Height, nil