Skip to content

Commit

Permalink
Update ethclient.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Jun 13, 2023
1 parent 4e95252 commit 75559fd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ethclient/ethclient.go
Expand Up @@ -562,15 +562,6 @@ func (ec *Client) SendTransaction(ctx context.Context, tx *types.Transaction) er
return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", hexutil.Encode(data))
}

// SupportSubscriptions reports whether the client transport supports publish/subscribe
// APIs.
//
// Note that calls to SubscribeNewHeads and other subscription-based methods can still
// fail even when this returns true, because the server might not support the mechanism.
func (ec *Client) SupportsSubscriptions() bool {
return ec.c.SupportsSubscriptions()
}

func toBlockNumArg(number *big.Int) string {
if number == nil {
return "latest"
Expand Down

0 comments on commit 75559fd

Please sign in to comment.