Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xvv committed May 26, 2022
1 parent f8988bc commit da797e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cast/src/rlp_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ use rlp::{Decodable, DecoderError, Encodable, Rlp, RlpStream};
use serde_json::Value;
use std::fmt::{Debug, Display, Formatter, LowerHex};

//TODO ADD INT SUPPORT ?
/// Arbitrarly nested data
/// Iem::Array(vec![] }; is equivalent to []
/// Iem::Array(vec![Item::Data(vec![])] }; is equivalent to [""] or [null]
/// Iem::Array(vec![]); is equivalent to []
/// Iem::Array(vec![Item::Data(vec![])]); is equivalent to [""] or [null]
#[derive(Debug, Clone, Eq, PartialEq)]
pub enum Item {
Data(Vec<u8>),
Expand Down
2 changes: 1 addition & 1 deletion cli/src/opts/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Examples:
#[clap(name = "--hex-to-rlp")]
#[clap(about = "Encodes an array of hex data or hex data to RLP data")]
HexToRlp { value: Option<String> },
#[clap(name = "--from-rlp-hex")]
#[clap(name = "--hex-from-rlp")]
#[clap(about = "Decodes hex RLP encoded data ")]
HexFromRlp { value: Option<String> },
#[clap(name = "access-list")]
Expand Down

0 comments on commit da797e2

Please sign in to comment.