Skip to content

Commit 8d03772

Browse files
committed
Add a comment to raw_tx to indicate it already has been 0x prefixed
Signed-off-by: Jacinta Ferrant <jacinta.ferrant@gmail.com>
1 parent 1e55e15 commit 8d03772

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

testnet/stacks-node/src/event_dispatcher.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub struct TransactionEventPayload<'a> {
342342
#[serde(with = "prefix_hex_codec")]
343343
/// The raw transaction result
344344
pub raw_result: Value,
345-
/// The hex encoded raw transaction
345+
/// The 0x prefixed, hex encoded raw transaction
346346
pub raw_tx: String,
347347
/// The contract interface
348348
pub contract_interface: Option<ContractInterface>,
@@ -644,10 +644,7 @@ impl EventObserver {
644644
status,
645645
raw_result: receipt.result.clone(),
646646
raw_tx,
647-
contract_interface: receipt.contract_analysis.as_ref().map(|analysis| {
648-
build_contract_interface(analysis)
649-
.expect("FATAL: failed to serialize contract publish receipt")
650-
}),
647+
contract_interface: receipt.contract_analysis.as_ref().map(|analysis| build_contract_interface(analysis).expect("FATAL: failed to serialize contract publish receipt")),
651648
burnchain_op,
652649
execution_cost: receipt.execution_cost.clone(),
653650
microblock_sequence: receipt.microblock_header.as_ref().map(|x| x.sequence),

0 commit comments

Comments
 (0)