From 1a0f7f52dbac3d59cf2cfe6c8112e5f709a99a33 Mon Sep 17 00:00:00 2001 From: Tinu280 Date: Thu, 13 Nov 2025 23:27:59 +0700 Subject: [PATCH] ethclient: fix syntax error in comments --- ethclient/ethclient.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 724d89f44b..7ac7d7e22c 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -45,7 +45,11 @@ func Dial(rawurl string) (*Client, error) { // DialContext creates a new RPC client using the provided context // and connects it to the specified URL endpoint. func DialContext(ctx context.Context, rawurl string) (*Client, error) { - ... + c, err := rpc.DialContext(ctx, rawurl) + if err != nil { + return nil, err + } + return NewClient(c), nil } // NewClient creates a Client instance that wraps the provided RPC client.