Skip to content

Commit

Permalink
remove unused el spec value
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Jan 11, 2024
1 parent 0115bb5 commit f1f8960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions pkg/coordinator/clients/execution/rpc/chainspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import (
)

type ChainSpec struct {
NetworkID string
ChainID string
ChainID string
}

func (chain *ChainSpec) CheckMismatch(chain2 *ChainSpec) []string {
Expand Down
8 changes: 1 addition & 7 deletions pkg/coordinator/clients/execution/rpc/executionapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,8 @@ func (ec *ExecutionClient) GetChainSpec(ctx context.Context) (*ChainSpec, error)
return nil, err
}

networkID, err := ec.ethClient.NetworkID(ctx)
if err != nil {
return nil, err
}

return &ChainSpec{
ChainID: chainID.String(),
NetworkID: networkID.String(),
ChainID: chainID.String(),
}, nil
}

Expand Down

0 comments on commit f1f8960

Please sign in to comment.