Skip to content

Commit 8f8af46

Browse files
authored
Merge pull request ethereum#109 from ethereum-optimism/chain-config-rpc
2 parents 18dbad1 + d6ca293 commit 8f8af46

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

fork.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def:
163163
globs:
164164
- "eth/state_accessor.go"
165165
- title: API frontend
166-
description: Format deposit and L1-cost data in transaction responses.
166+
description: Format deposit and L1-cost data in transaction responses. Add `debug_chainConfig` API.
167167
globs:
168168
- "internal/ethapi/api.go"
169169
- "rpc/errors.go"

internal/ethapi/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,10 @@ func (api *DebugAPI) SetHead(number hexutil.Uint64) {
22722272
api.b.SetHead(uint64(number))
22732273
}
22742274

2275+
func (api *DebugAPI) ChainConfig() *params.ChainConfig {
2276+
return api.b.ChainConfig()
2277+
}
2278+
22752279
// NetAPI offers network related RPC methods
22762280
type NetAPI struct {
22772281
net *p2p.Server

0 commit comments

Comments
 (0)