Skip to content

Commit ec45d5f

Browse files
committed
Add ScriptContextError alias
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.
1 parent cbc2f40 commit ec45d5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/miniscript/context.rs

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use std::error;
77

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

1113
use super::decode::ParseableKey;
1214
use crate::miniscript::limits::{

0 commit comments

Comments
 (0)