From 6072f1058613bd3e89a72ac3627f8c01a6fb3740 Mon Sep 17 00:00:00 2001 From: jangko Date: Wed, 23 Oct 2024 11:20:01 +0700 Subject: [PATCH] No need to use derefType anymore when using useDefault***In --- web3/conversions.nim | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/web3/conversions.nim b/web3/conversions.nim index 7fa61fe..dd3b873 100644 --- a/web3/conversions.nim +++ b/web3/conversions.nim @@ -28,9 +28,6 @@ export export eth_types_json_serialization except Topic -template derefType(T: type): untyped = - typeof(T()[]) - #------------------------------------------------------------------------------ # eth_api_types #------------------------------------------------------------------------------ @@ -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