Skip to content

Commit

Permalink
Addressing PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Jul 1, 2024
1 parent ef8a065 commit f12cac0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nimbus/rpc/server_api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import
../beacon/web3_eth_conv,
./rpc_types

{.push raises: [].}

type
ServerAPIRef = ref object
com: CommonRef
Expand All @@ -30,9 +28,10 @@ const
defaultTag = blockId("latest")

func newServerAPI*(c: ForkedChainRef): ServerAPIRef =
new(result)
result.com = c.com
result.chain = c
ServerAPIRef(
com: c.com,
chain: c,
)

proc headerFromTag(api: ServerAPIRef, blockTag: BlockTag): Result[common.BlockHeader, string] =
if blockTag.kind == bidAlias:
Expand Down

0 comments on commit f12cac0

Please sign in to comment.