@@ -42,7 +42,7 @@ pub enum ScriptContextError {
42
42
UncompressedKeysNotAllowed ,
43
43
/// At least one satisfaction path in the Miniscript fragment has more than
44
44
/// `MAX_STANDARD_P2WSH_STACK_ITEMS` (100) witness elements.
45
- MaxWitnessItemssExceeded { actual : usize , limit : usize } ,
45
+ MaxWitnessItemsExceeded { actual : usize , limit : usize } ,
46
46
/// At least one satisfaction path in the Miniscript fragment contains more
47
47
/// than `MAX_OPS_PER_SCRIPT`(201) opcodes.
48
48
MaxOpCountExceeded ,
@@ -79,7 +79,7 @@ impl error::Error for ScriptContextError {
79
79
| CompressedOnly ( _)
80
80
| XOnlyKeysNotAllowed ( _, _)
81
81
| UncompressedKeysNotAllowed
82
- | MaxWitnessItemssExceeded { .. }
82
+ | MaxWitnessItemsExceeded { .. }
83
83
| MaxOpCountExceeded
84
84
| MaxWitnessScriptSizeExceeded
85
85
| MaxRedeemScriptSizeExceeded
@@ -110,7 +110,7 @@ impl fmt::Display for ScriptContextError {
110
110
ScriptContextError :: UncompressedKeysNotAllowed => {
111
111
write ! ( f, "uncompressed keys cannot be used in Taproot descriptors." )
112
112
}
113
- ScriptContextError :: MaxWitnessItemssExceeded { actual, limit } => write ! (
113
+ ScriptContextError :: MaxWitnessItemsExceeded { actual, limit } => write ! (
114
114
f,
115
115
"At least one spending path in the Miniscript fragment has {} more \
116
116
witness items than limit {}.",
@@ -498,7 +498,7 @@ impl ScriptContext for Segwitv0 {
498
498
499
499
fn check_witness ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
500
500
if witness. len ( ) > MAX_STANDARD_P2WSH_STACK_ITEMS {
501
- return Err ( ScriptContextError :: MaxWitnessItemssExceeded {
501
+ return Err ( ScriptContextError :: MaxWitnessItemsExceeded {
502
502
actual : witness. len ( ) ,
503
503
limit : MAX_STANDARD_P2WSH_STACK_ITEMS ,
504
504
} ) ;
@@ -565,7 +565,7 @@ impl ScriptContext for Segwitv0 {
565
565
// No possible satisfactions
566
566
Err ( _e) => Err ( ScriptContextError :: ImpossibleSatisfaction ) ,
567
567
Ok ( max_witness_items) if max_witness_items > MAX_STANDARD_P2WSH_STACK_ITEMS => {
568
- Err ( ScriptContextError :: MaxWitnessItemssExceeded {
568
+ Err ( ScriptContextError :: MaxWitnessItemsExceeded {
569
569
actual : max_witness_items,
570
570
limit : MAX_STANDARD_P2WSH_STACK_ITEMS ,
571
571
} )
@@ -612,7 +612,7 @@ impl ScriptContext for Tap {
612
612
fn check_witness ( witness : & [ Vec < u8 > ] ) -> Result < ( ) , ScriptContextError > {
613
613
// Note that tapscript has a 1000 limit compared to 100 of segwitv0
614
614
if witness. len ( ) > MAX_STACK_SIZE {
615
- return Err ( ScriptContextError :: MaxWitnessItemssExceeded {
615
+ return Err ( ScriptContextError :: MaxWitnessItemsExceeded {
616
616
actual : witness. len ( ) ,
617
617
limit : MAX_STACK_SIZE ,
618
618
} ) ;
0 commit comments