Skip to content

Commit

Permalink
return ChainConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Jan 4, 2024
1 parent 20d6f2d commit 0071f64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var (
type Client interface {
Client() *rpc.Client
Close()
ChainConfig(context.Context) (*params.ChainConfigWithUpgradesJSON, error)
ChainConfig(context.Context) (*params.ChainConfig, error)
ChainID(context.Context) (*big.Int, error)
BlockByHash(context.Context, common.Hash) (*types.Block, error)
BlockByNumber(context.Context, *big.Int) (*types.Block, error)
Expand Down Expand Up @@ -144,8 +144,8 @@ func (ec *client) Client() *rpc.Client {
// Blockchain Access

// ChainConfig retrieves the current chain config.
func (ec *client) ChainConfig(ctx context.Context) (*params.ChainConfigWithUpgradesJSON, error) {
var result *params.ChainConfigWithUpgradesJSON
func (ec *client) ChainConfig(ctx context.Context) (*params.ChainConfig, error) {
var result *params.ChainConfig
err := ec.c.CallContext(ctx, &result, "eth_getChainConfig")
if err != nil {
return nil, err
Expand Down

0 comments on commit 0071f64

Please sign in to comment.