We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4af9f2 commit 0fba94eCopy full SHA for 0fba94e
src/lib.rs
@@ -390,10 +390,11 @@ mod tests {
390
}
391
392
fn run(self) -> Result<(), simplicity::bit_machine::ExecutionError> {
393
- let mut mac = BitMachine::for_program(self.program.redeem())
394
- .expect("program should be within reasonable bounds");
395
let env = dummy_env::dummy_with(self.lock_time, self.sequence, self.include_fee_output);
396
- mac.exec(self.program.redeem(), &env).map(|_| ())
+ let pruned = self.program.redeem().prune(&env)?;
+ let mut mac = BitMachine::for_program(&pruned)
+ .expect("program should be within reasonable bounds");
397
+ mac.exec(&pruned, &env).map(|_| ())
398
399
400
pub fn assert_run_success(self) {
0 commit comments