Skip to content

Commit

Permalink
add comment for rlp_unsigned_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamWuGit committed Jul 18, 2024
1 parent 6f199a1 commit e05ccdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bus-mapping/src/circuit_input_builder/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ pub struct Transaction {
pub signature: Signature,
/// RLP bytes
pub rlp_bytes: Vec<u8>,
/// RLP bytes for signing
/// RLP bytes for signing, only used for PreEip155 tx without chainid
/// for other tx types: rlp == rlp_unsigned.
pub rlp_unsigned_bytes: Vec<u8>,
/// RLP bytes for signed tx
pub rlp_signed_bytes: Vec<u8>,
Expand Down
3 changes: 2 additions & 1 deletion eth-types/src/geth_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ pub struct Transaction {

/// RLP bytes
pub rlp_bytes: Vec<u8>,
/// RLP unsigned bytes
/// RLP unsigned bytes, only used for PreEip155 tx without chainid
/// for other tx types: rlp == rlp_unsigned.
pub rlp_unsigned_bytes: Vec<u8>,
// TODO: add rlp_signed_bytes as well ?
/// Transaction hash
Expand Down

0 comments on commit e05ccdc

Please sign in to comment.