Skip to content

Commit

Permalink
mpm integration-test: fix discarded txn (#3691)
Browse files Browse the repository at this point in the history
  • Loading branch information
pause125 authored Aug 28, 2022
1 parent f43e580 commit 8719732
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vm/starcoin-transactional-test-harness/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,15 +593,15 @@ impl<'a> StarcoinTestAdapter<'a> {
TransactionStatus::Keep(_kept_vm_status) => {
self.context
.apply_write_set(output.clone().into_inner().0)?;
let mut chain = self.context.chain.lock().unwrap();
chain.add_new_txn(
Transaction::UserTransaction(signed_txn.clone()),
output.clone(),
)?;
}
TransactionStatus::Discard(_) => {}
}
let payload = decode_txn_payload(&self.context.storage, signed_txn.payload())?;
let mut chain = self.context.chain.lock().unwrap();
chain.add_new_txn(
Transaction::UserTransaction(signed_txn.clone()),
output.clone(),
)?;
let mut txn_view: SignedUserTransactionView = signed_txn.try_into()?;
txn_view.raw_txn.decoded_payload = Some(payload.into());
Ok(TransactionWithOutput {
Expand Down

0 comments on commit 8719732

Please sign in to comment.