Skip to content

Commit

Permalink
fix nil ptr (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed May 26, 2023
1 parent 4986e2f commit 83a15c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gql/resolver_mpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (r *resolver) Mpool(ctx context.Context, args struct{ Local bool }) ([]*msg
method := m.Message.Method.String()
toact, err := r.fullNode.StateGetActor(ctx, m.Message.To, types.EmptyTSK)
if err == nil {
method = consensus.NewActorRegistry().Methods[toact.Code][m.Message.Method].Params.Name()
method = consensus.NewActorRegistry().Methods[toact.Code][m.Message.Method].Name
}

var params string
Expand Down

0 comments on commit 83a15c8

Please sign in to comment.