Skip to content

Commit

Permalink
Add ScriptContextError alias
Browse files Browse the repository at this point in the history
Add an alias to the `miniscript::context` module to maintain backwards
comparability. Also, as for `ScriptContext` this may reduce potential
naming conflicts downstream because "context" is not that unique.

Note the alias is in `miniscript::context` but in `miniscript` there is
a re-export of `Contetxt` but not one of the error.
  • Loading branch information
tcharding committed Aug 8, 2023
1 parent cf66078 commit 24c11c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/miniscript/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use std::error;

use bitcoin::constants::MAX_BLOCK_WEIGHT;
use bitcoin::hashes::{hash160, ripemd160, sha256};
/// `ScriptContextError` alias for backwards compatability and to reduce potential naming conflicts.
pub use ContextError as ScriptContextError;

use super::decode::ParseableKey;
use crate::miniscript::limits::{
Expand Down

0 comments on commit 24c11c0

Please sign in to comment.