I'm confused why there are multiple OutputSubstitutionDisabled(&str) variants instead of two sub-variants that don't take string context.
I see:
1
InternalOutputSubstitutionError::OutputSubstitutionDisabled(
"Decreasing the receiver output value is not allowed",
)
2
InternalOutputSubstitutionError::OutputSubstitutionDisabled(
"Changing the receiver output script pubkey is not allowed",
)
Of which the one appropriate error would be better named
InternalOutputSubstitutionError::Disabled
Originally posted by @DanGould in #546 (comment)
I'm confused why there are multiple OutputSubstitutionDisabled(&str) variants instead of two sub-variants that don't take string context.
I see:
1
2
Of which the one appropriate error would be better named
InternalOutputSubstitutionError::DisabledOriginally posted by @DanGould in #546 (comment)