From 336cb2973df80fa5951c5a2d00fbe114cc21b4d9 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "ethclient: acquire the rpc.Client (#27246)" This reverts commit 5ac6bd2dc6ece31437d8e9154e157763e36ee582. --- ethclient/ethclient.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 09d3f37d1e..47beaf63cc 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -41,7 +41,6 @@ func Dial(rawurl string) (*Client, error) { return DialContext(context.Background(), rawurl) } -// DialContext connects a client to the given URL with context. func DialContext(ctx context.Context, rawurl string) (*Client, error) { c, err := rpc.DialContext(ctx, rawurl) if err != nil { @@ -55,16 +54,10 @@ func NewClient(c *rpc.Client) *Client { return &Client{c} } -// Close closes the underlying RPC connection. func (ec *Client) Close() { ec.c.Close() } -// Client gets the underlying RPC client. -func (ec *Client) Client() *rpc.Client { - return ec.c -} - // Blockchain Access // ChainID retrieves the current chain ID for transaction replay protection.