From 014528f5822fb2a6727a8b19169fdd03dbec6567 Mon Sep 17 00:00:00 2001 From: Afr Schoe <58883403+q9f@users.noreply.github.com> Date: Fri, 28 Jan 2022 12:42:23 +0100 Subject: [PATCH] "eth/rlp: cleanup" (#59) * eth/rlp: cleanup --- lib/eth/constant.rb | 5 ----- lib/eth/rlp.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/eth/constant.rb b/lib/eth/constant.rb index 75331153..00f2767e 100644 --- a/lib/eth/constant.rb +++ b/lib/eth/constant.rb @@ -14,8 +14,6 @@ # -*- encoding : ascii-8bit -*- -require "eth/rlp" - # Provides the `Eth` module. module Eth @@ -70,9 +68,6 @@ module Constant # The RLP array type offset. LIST_PREFIX_OFFSET = 0xc0.freeze - # An RLP-encoded empty list. - LIST_EMPTY = Rlp.encode([]).freeze - # The binary encoding is ASCII (8-bit). BINARY_ENCODING = "ASCII-8BIT".freeze diff --git a/lib/eth/rlp.rb b/lib/eth/rlp.rb index acb3e6a5..a1b18198 100644 --- a/lib/eth/rlp.rb +++ b/lib/eth/rlp.rb @@ -41,7 +41,7 @@ class SerializationError < RlpException; end # An error-type to point out RLP-type serialization errors. class DeserializationError < RlpException; end - # A wrapper to represent already RLP encoded data + # A wrapper to represent already RLP encoded data. class Data < String; end # Performes an Eth::Rlp::Encoder on any ruby object.