lib/ciri/rlp/encode.rb in ciri-rlp-0.2.2 vs lib/ciri/rlp/encode.rb in ciri-rlp-1.0.0
- old
+ new
@@ -72,13 +72,13 @@
else # unknown
raise RLP::InvalidError.new "type size should be 1, got #{type}"
end
elsif type == Raw
encode_raw(item)
- elsif type == RawString
+ elsif type == Bytes
raise RLP::InvalidError.new "expect String, got #{item.class}" unless item.is_a?(String)
encode_raw(item)
- elsif type == RawList
+ elsif type == List
raise RLP::InvalidError.new "expect Array, got #{item.class}" unless item.is_a?(Array)
encode_raw(item)
else
raise RLP::InvalidError.new "unknown type #{type}"
end
\ No newline at end of file