Skip to content

Commit c2fad40

Browse files
committed
chore: use initiating ClarityTransactionConnection
1 parent 3a291ec commit c2fad40

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

stackslib/src/clarity_vm/clarity.rs

+9-18
Original file line numberDiff line numberDiff line change
@@ -1591,24 +1591,15 @@ impl<'a> ClarityBlockConnection<'a, '_> {
15911591
}
15921592

15931593
pub fn start_transaction_processing(&mut self) -> ClarityTransactionConnection {
1594-
let store = &mut self.datastore;
1595-
let cost_track = &mut self.cost_track;
1596-
let header_db = self.header_db;
1597-
let burn_state_db = self.burn_state_db;
1598-
let mainnet = self.mainnet;
1599-
let chain_id = self.chain_id;
1600-
let mut log = RollbackWrapperPersistedLog::new();
1601-
log.nest();
1602-
ClarityTransactionConnection {
1603-
store,
1604-
cost_track,
1605-
header_db,
1606-
burn_state_db,
1607-
log: Some(log),
1608-
mainnet,
1609-
chain_id,
1610-
epoch: self.epoch,
1611-
}
1594+
ClarityTransactionConnection::new(
1595+
&mut self.datastore,
1596+
self.header_db,
1597+
self.burn_state_db,
1598+
&mut self.cost_track,
1599+
self.mainnet,
1600+
self.chain_id,
1601+
self.epoch,
1602+
)
16121603
}
16131604

16141605
/// Execute `todo` as a transaction in this block. The execution

0 commit comments

Comments
 (0)