Skip to content

Commit

Permalink
"eth/rlp: cleanup" (#59)
Browse files Browse the repository at this point in the history
* eth/rlp: cleanup
  • Loading branch information
q9f authored Jan 28, 2022
1 parent f7374e0 commit 014528f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions lib/eth/constant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

# -*- encoding : ascii-8bit -*-

require "eth/rlp"

# Provides the `Eth` module.
module Eth

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/eth/rlp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 014528f

Please sign in to comment.