Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
- name: Running cargo test
env:
FEATUERS: bitcoin elements
env:
FEATURES: bitcoin elements
run: |
for f in $FEATURES; do [cargo test --no-default-features --features=f]; done
cargo test --no-default-features
cargo test --all-features
for f in $FEATURES; do echo "Features: $f" && cargo test --no-default-features --features="$f"; done
echo "No default features" && cargo test --no-default-features
echo "All features" && cargo test --all-features

clippy:
name: Clippy
Expand Down Expand Up @@ -95,16 +95,16 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
- name: Running cargo test
env:
FEATUERS: bitcoin elements
env:
FEATURES: honggfuzz_fuzz
run: |
cd fuzz/
for f in $FEATURES; do [cargo test --no-default-features --features=f]; done
cargo test --no-default-features
cargo test --all-features
for f in $FEATURES; do echo "Features: $f" && cargo test --no-default-features --features="$f"; done
echo "No default features" && cargo test --no-default-features
echo "All features" && cargo test --all-features
- name: Running fuzz tests
env:
FEATUERS: bitcoin elements
env:
FEATURES: honggfuzz_fuzz
run: |
cd fuzz/
./travis-fuzz.sh
Expand Down
2 changes: 1 addition & 1 deletion src/extension/elements/data_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl SimplicityHash for confidential::Nonce {
}
}

impl SimplicityHash for bitcoin::Script {
impl SimplicityHash for elements::bitcoin::Script {
/// All scripts are first hashed to sha256 to get a scriptpubkey
/// equivalent and then added to current sha256 context.
fn simplicity_hash(&self, eng: &mut sha256::HashEngine) {
Expand Down
10 changes: 5 additions & 5 deletions src/extension/elements/jets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,8 @@ mod tests {
};
use crate::merkle::cmr::Cmr;
use crate::merkle::common::MerkleRoot;
use bitcoin::Script;
use bitcoin_hashes::sha256;
use elements::bitcoin::Script;
use elements::{
confidential, AssetIssuance, OutPoint, Transaction, TxIn, TxInWitness, TxOut, TxOutWitness,
};
Expand Down Expand Up @@ -833,7 +833,7 @@ mod tests {
lock_time: 0,
input: vec![TxIn {
previous_output: OutPoint {
txid: bitcoin::Txid::from_inner(tx_id),
txid: elements::bitcoin::Txid::from_inner(tx_id),
vout: 0,
},
sequence: 0xfffffffe,
Expand Down Expand Up @@ -898,8 +898,8 @@ mod tests {
mac.exec(&program, &txenv).unwrap();
}
#[cfg(test)]
fn hex_script(s: &str) -> bitcoin::Script {
let v: Vec<u8> = bitcoin::hashes::hex::FromHex::from_hex(s).unwrap();
bitcoin::Script::from(v)
fn hex_script(s: &str) -> elements::bitcoin::Script {
let v: Vec<u8> = elements::bitcoin::hashes::hex::FromHex::from_hex(s).unwrap();
elements::bitcoin::Script::from(v)
}
}