Skip to content

Commit 2861685

Browse files
committed
Interpreter lints fix
1 parent fea9455 commit 2861685

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/interpreter/inner.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,12 @@ pub fn from_txdata<'txin>(
284284

285285
#[cfg(test)]
286286
mod tests {
287-
#![allow(dead_code)]
288-
#![allow(unused_imports)] // fuck
289287

290288
use super::*;
291289
use bitcoin::blockdata::script;
292290
use bitcoin::hashes::hex::FromHex;
293291
use bitcoin::hashes::{hash160, sha256, Hash};
294-
use bitcoin::{self, OutPoint, Script, Transaction, TxIn, TxOut};
292+
use bitcoin::{self, Script};
295293
use std::str::FromStr;
296294

297295
struct KeyTestData {
@@ -506,10 +504,9 @@ mod tests {
506504

507505
// wpkh, right pubkey, signature
508506
let (inner, stack, script_code) =
509-
from_txdata(&comp.wpkh_spk, &blank_script, &comp.wpkh_stack_justkey)
510-
.expect("parse txdata");
507+
from_txdata(&comp.wpkh_spk, &blank_script, &comp.wpkh_stack).expect("parse txdata");
511508
assert_eq!(inner, Inner::PublicKey(fixed.pk_comp, PubkeyType::Wpkh));
512-
assert_eq!(stack, Stack::from(vec![]));
509+
assert_eq!(stack, Stack::from(vec![comp.wpkh_stack[0][..].into()]));
513510
assert_eq!(script_code, comp.pkh_spk);
514511

515512
// Scriptsig is nonempty

0 commit comments

Comments
 (0)