From fa8294b3c0628862fd063a2eef02e6d8d8b25e1f Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 17 Feb 2023 14:00:55 -0800 Subject: [PATCH] fix: remove eth_subscription hack --- cli/util/api.go | 2 +- itests/kit/rpc.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/util/api.go b/cli/util/api.go index 1d6928c3fa2..8a3f5f3f57b 100644 --- a/cli/util/api.go +++ b/cli/util/api.go @@ -343,7 +343,7 @@ func GetFullNodeAPIV1(ctx *cli.Context, opts ...GetFullNodeOption) (v1api.FullNo var rpcOpts []jsonrpc.Option if options.ethSubHandler != nil { - rpcOpts = append(rpcOpts, jsonrpc.WithClientHandler("Filecoin", options.ethSubHandler), jsonrpc.WithClientHandlerAlias("eth_subscription", "Filecoin.EthSubscription")) + rpcOpts = append(rpcOpts, jsonrpc.WithClientHandler("Filecoin", options.ethSubHandler)) } heads, err := GetRawAPIMulti(ctx, repo.FullNode, "v1") diff --git a/itests/kit/rpc.go b/itests/kit/rpc.go index 5d40ac3e96e..66c1c8f4482 100644 --- a/itests/kit/rpc.go +++ b/itests/kit/rpc.go @@ -56,7 +56,6 @@ func fullRpc(t *testing.T, f *TestFullNode) (*TestFullNode, Closer) { rpcOpts := []jsonrpc.Option{ jsonrpc.WithClientHandler("Filecoin", f.EthSubRouter), - jsonrpc.WithClientHandlerAlias("eth_subscription", "Filecoin.EthSubscription"), } cl, stop, err := client.NewFullNodeRPCV1(context.Background(), "ws://"+srv.Listener.Addr().String()+"/rpc/v1", nil, rpcOpts...)