Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No need to use derefType anymore when using useDefault***In #174

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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