@@ -253,7 +253,7 @@ impl PlutusWitness {
253253}
254254
255255#[ derive( Clone , Debug ) ]
256- enum WitnessType {
256+ enum ScriptWitnessType {
257257 NativeScriptWitness ( NativeScript ) ,
258258 PlutusScriptWitness ( PlutusWitness ) ,
259259}
@@ -262,7 +262,7 @@ enum WitnessType {
262262#[ derive( Clone , Debug ) ]
263263struct MockWitnessSet {
264264 vkeys : BTreeSet < Ed25519KeyHash > ,
265- scripts : LinkedHashMap < ScriptHash , Option < WitnessType > > ,
265+ scripts : LinkedHashMap < ScriptHash , Option < ScriptWitnessType > > ,
266266 bootstraps : BTreeSet < Vec < u8 > > ,
267267}
268268
@@ -685,7 +685,7 @@ impl TransactionBuilder {
685685 self . add_script_input ( & hash, input, amount) ;
686686 self . input_types . scripts . insert (
687687 hash,
688- Some ( WitnessType :: NativeScriptWitness ( script. clone ( ) ) ) ,
688+ Some ( ScriptWitnessType :: NativeScriptWitness ( script. clone ( ) ) ) ,
689689 ) ;
690690 }
691691
@@ -695,7 +695,7 @@ impl TransactionBuilder {
695695 self . add_script_input ( & hash, input, amount) ;
696696 self . input_types . scripts . insert (
697697 hash,
698- Some ( WitnessType :: PlutusScriptWitness ( witness. clone ( ) ) ) ,
698+ Some ( ScriptWitnessType :: PlutusScriptWitness ( witness. clone ( ) ) ) ,
699699 ) ;
700700 }
701701
@@ -775,7 +775,7 @@ impl TransactionBuilder {
775775 if self . input_types . scripts . contains_key ( & hash) {
776776 self . input_types . scripts . insert (
777777 hash,
778- Some ( WitnessType :: NativeScriptWitness ( s. clone ( ) ) ) ,
778+ Some ( ScriptWitnessType :: NativeScriptWitness ( s. clone ( ) ) ) ,
779779 ) ;
780780 }
781781 } ) ;
@@ -792,7 +792,7 @@ impl TransactionBuilder {
792792 if self . input_types . scripts . contains_key ( & hash) {
793793 self . input_types . scripts . insert (
794794 hash,
795- Some ( WitnessType :: PlutusScriptWitness ( s. clone ( ) ) ) ,
795+ Some ( ScriptWitnessType :: PlutusScriptWitness ( s. clone ( ) ) ) ,
796796 ) ;
797797 }
798798 } ) ;
@@ -803,7 +803,7 @@ impl TransactionBuilder {
803803 pub fn get_native_input_scripts ( & self ) -> Option < NativeScripts > {
804804 let mut scripts = NativeScripts :: new ( ) ;
805805 self . input_types . scripts . values ( ) . for_each ( |option| {
806- if let Some ( WitnessType :: NativeScriptWitness ( s) ) = option {
806+ if let Some ( ScriptWitnessType :: NativeScriptWitness ( s) ) = option {
807807 scripts. add ( & s) ;
808808 }
809809 } ) ;
@@ -833,7 +833,7 @@ impl TransactionBuilder {
833833 } ) ;
834834 let mut scripts = PlutusWitnesses :: new ( ) ;
835835 self . input_types . scripts . iter ( ) . for_each ( |( hash, option) | {
836- if let Some ( WitnessType :: PlutusScriptWitness ( s) ) = option {
836+ if let Some ( ScriptWitnessType :: PlutusScriptWitness ( s) ) = option {
837837 if let Some ( idx) = script_hash_index_map. get ( & hash) {
838838 scripts. add ( & s. clone_with_redeemer_index ( & idx) ) ;
839839 }
0 commit comments