From 30f147770cf8652bca41582ba71804cecf6468b0 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Tue, 18 Oct 2022 13:24:30 +0800 Subject: [PATCH] fix: use api.ErrActorNotFound instead of types.ErrActorNotFound --- node/impl/full/state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/impl/full/state.go b/node/impl/full/state.go index e2c3438bb..2442a2744 100644 --- a/node/impl/full/state.go +++ b/node/impl/full/state.go @@ -1093,7 +1093,7 @@ func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatc _, err := a.StateLookupID(ctx, match.To, tsk) // if the recipient doesn't exist at the start point, we're not gonna find any matches - if xerrors.Is(err, types.ErrActorNotFound) { + if xerrors.Is(err, &api.ErrActorNotFound{}) { return nil, nil } @@ -1104,7 +1104,7 @@ func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatc _, err := a.StateLookupID(ctx, match.From, tsk) // if the sender doesn't exist at the start point, we're not gonna find any matches - if xerrors.Is(err, types.ErrActorNotFound) { + if xerrors.Is(err, &api.ErrActorNotFound{}) { return nil, nil }