From 12f36c5bda4c8c49b42bbaf19d0964bccf448987 Mon Sep 17 00:00:00 2001 From: Whyrusleeping Date: Wed, 14 Oct 2020 09:22:25 -0500 Subject: [PATCH] Update cmd/lotus-gateway/api.go Co-authored-by: dirkmc --- cmd/lotus-gateway/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/lotus-gateway/api.go b/cmd/lotus-gateway/api.go index 381dd931bc0..8f1d69c184c 100644 --- a/cmd/lotus-gateway/api.go +++ b/cmd/lotus-gateway/api.go @@ -182,6 +182,9 @@ func (a *GatewayAPI) WalletVerify(ctx context.Context, k address.Address, msg [] } func (a *GatewayAPI) StateReadState(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*api.ActorState, error) { + if err := a.checkTipsetKey(ctx, tsk); err != nil { + return nil, err + } return a.api.StateReadState(ctx, actor, tsk) }