Skip to content

Commit cd5e174

Browse files
committed
Log transaction fields dynamically
Each transaction object should now how to display itself, whether it's a legacy, access list, or dynamic fee transaction.
1 parent 03056cb commit cd5e174

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

eth/vm/forks/london/state.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,11 @@ def build_evm_message(self, transaction: SignedTransactionAPI) -> MessageAPI:
7171

7272
self.vm_state.logger.debug2(
7373
(
74-
"TRANSACTION: sender: %s | to: %s | value: %s | gas: %s | "
75-
"max_priority_fee_per_gas: %s | max_fee_per_gas: %s | s: %s | "
76-
"r: %s | y_parity: %s | data-hash: %s"
74+
"TRANSACTION: %r; sender: %s | to: %s | data-hash: %s"
7775
),
76+
transaction,
7877
encode_hex(transaction.sender),
7978
encode_hex(transaction.to),
80-
transaction.value,
81-
transaction.gas,
82-
transaction.max_priority_fee_per_gas,
83-
transaction.max_fee_per_gas,
84-
transaction.s,
85-
transaction.r,
86-
transaction.y_parity,
8779
encode_hex(keccak(transaction.data)),
8880
)
8981

0 commit comments

Comments
 (0)