Skip to content

Commit

Permalink
No need to use derefType anymore when using useDefault***In
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Oct 23, 2024
1 parent 8003166 commit 6072f10
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions web3/conversions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export

export eth_types_json_serialization except Topic

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

#------------------------------------------------------------------------------
# eth_api_types
#------------------------------------------------------------------------------
Expand All @@ -47,10 +44,10 @@ TransactionArgs.useDefaultSerializationIn JrpcConv
FeeHistoryResult.useDefaultSerializationIn JrpcConv
AuthorizationObject.useDefaultSerializationIn JrpcConv

derefType(BlockHeader).useDefaultSerializationIn JrpcConv
derefType(BlockObject).useDefaultSerializationIn JrpcConv
derefType(TransactionObject).useDefaultSerializationIn JrpcConv
derefType(ReceiptObject).useDefaultSerializationIn JrpcConv
BlockHeader.useDefaultSerializationIn JrpcConv
BlockObject.useDefaultSerializationIn JrpcConv
TransactionObject.useDefaultSerializationIn JrpcConv
ReceiptObject.useDefaultSerializationIn JrpcConv

#------------------------------------------------------------------------------
# engine_api_types
Expand Down

0 comments on commit 6072f10

Please sign in to comment.