diff --git a/fork.yaml b/fork.yaml index fe0dc14c5505..061e8fd7c718 100644 --- a/fork.yaml +++ b/fork.yaml @@ -163,7 +163,7 @@ def: globs: - "eth/state_accessor.go" - title: API frontend - description: Format deposit and L1-cost data in transaction responses. + description: Format deposit and L1-cost data in transaction responses. Add `debug_chainConfig` API. globs: - "internal/ethapi/api.go" - "rpc/errors.go" diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 5f8c4afb9eba..87f9b8030c8a 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2272,6 +2272,10 @@ func (api *DebugAPI) SetHead(number hexutil.Uint64) { api.b.SetHead(uint64(number)) } +func (api *DebugAPI) ChainConfig() *params.ChainConfig { + return api.b.ChainConfig() +} + // NetAPI offers network related RPC methods type NetAPI struct { net *p2p.Server