From bb76daa6d93d217f9ad61e547f097e2eb2f1afbb Mon Sep 17 00:00:00 2001 From: Miran Date: Tue, 8 Oct 2024 20:21:16 +0200 Subject: [PATCH] add missing type, fix typo, meaningful deprecations (#745) --- eth/common/eth_types.nim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/eth/common/eth_types.nim b/eth/common/eth_types.nim index 8291282..00460b7 100644 --- a/eth/common/eth_types.nim +++ b/eth/common/eth_types.nim @@ -39,7 +39,8 @@ type EthHeader* = Header EthTransaction* = Transaction EthReceipt* = Receipt - EthWithdrawapRequest* = WithdrawalRequest + EthWithdrawal* = Withdrawal + EthWithdrawalRequest* = WithdrawalRequest func init*(T: type BlockHashOrNumber, str: string): T {.raises: [ValueError].} = if str.startsWith "0x": @@ -67,12 +68,12 @@ export eth_hash type # Names that don't appear in the spec and have no particular purpose any more - # just use the underlying type directly - Blob* {.deprecated.} = seq[byte] - BlockHeader*{.deprecated: "Header".} = Header - BlockNonce* {.deprecated.} = Bytes8 - BloomFilter* {.deprecated.} = Bloom - StorageKey* {.deprecated.} = Bytes32 - VersionedHashes* {.deprecated.} = seq[VersionedHash] + Blob* {.deprecated: "seq[byte]".} = seq[byte] + BlockHeader* {.deprecated: "Header".} = Header + BlockNonce* {.deprecated: "Bytes8".} = Bytes8 + BloomFilter* {.deprecated: "Bloom".} = Bloom + StorageKey* {.deprecated: "Bytes32".} = Bytes32 + VersionedHashes* {.deprecated: "seq[VersionedHash]".} = seq[VersionedHash] func toBlockNonce*(n: uint64): BlockNonce {.deprecated.} = n.to(BlockNonce)