Skip to content

Commit 10498e4

Browse files
authored
add comment to explain rlp_unsigned_bytes (#1367)
* add comment for rlp_unsigned_bytes * rename chain_id
1 parent 3779f4d commit 10498e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bus-mapping/src/circuit_input_builder/transaction.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ pub struct Transaction {
194194
pub signature: Signature,
195195
/// RLP bytes
196196
pub rlp_bytes: Vec<u8>,
197-
/// RLP bytes for signing
197+
/// RLP bytes for signing, only used for PreEip155 tx without chain_id
198+
/// for other tx types: rlp == rlp_unsigned.
198199
pub rlp_unsigned_bytes: Vec<u8>,
199200
/// RLP bytes for signed tx
200201
pub rlp_signed_bytes: Vec<u8>,

eth-types/src/geth_types.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ pub struct Transaction {
287287

288288
/// RLP bytes
289289
pub rlp_bytes: Vec<u8>,
290-
/// RLP unsigned bytes
290+
/// RLP unsigned bytes, only used for PreEip155 tx without chain_id
291+
/// for other tx types: rlp == rlp_unsigned.
291292
pub rlp_unsigned_bytes: Vec<u8>,
292293
// TODO: add rlp_signed_bytes as well ?
293294
/// Transaction hash

0 commit comments

Comments
 (0)