Skip to content

Commit

Permalink
Bump nim-web3, nim-serialization: no more derefType (#2771)
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko authored Oct 23, 2024
1 parent 5fc4c13 commit 2c612d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions nimbus/common/chain_config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,10 @@ createJsonFlavor JGenesis,
allowUnknownFields = true,
skipNullFields = true

template derefType(T: type): untyped =
typeof(T()[])

NetworkParams.useDefaultReaderIn JGenesis
GenesisAccount.useDefaultReaderIn JGenesis
derefType(Genesis).useDefaultReaderIn JGenesis
derefType(ChainConfig).useDefaultReaderIn JGenesis
Genesis.useDefaultReaderIn JGenesis
ChainConfig.useDefaultReaderIn JGenesis

# ------------------------------------------------------------------------------
# Private helper functions
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-web3

0 comments on commit 2c612d4

Please sign in to comment.