@@ -3654,30 +3654,34 @@ mod tests {
36543654 let est2 = tx_builder. min_fee ( ) ;
36553655 assert ! ( est2. is_ok( ) ) ;
36563656
3657- // Remove one mint script
3658- tx_builder. mint_scripts =
3659- Some ( NativeScripts :: from ( vec ! [ tx_builder. mint_scripts. unwrap( ) . get( 1 ) ] ) ) ;
3660-
3661- // Now two different policies are minted but only one witness script is present
3662- let est3 = tx_builder. min_fee ( ) ;
3663- assert ! ( est3. is_err( ) ) ;
3664- assert ! ( est3. err( ) . unwrap( ) . to_string( ) . contains( & format!( "{:?}" , hex:: encode( policy_id1. to_bytes( ) ) ) ) ) ;
3665-
3666- // Remove all mint scripts
3667- tx_builder. mint_scripts = Some ( NativeScripts :: new ( ) ) ;
3668-
3669- // Mint exists but no witness scripts at all present
3670- let est4 = tx_builder. min_fee ( ) ;
3671- assert ! ( est4. is_err( ) ) ;
3672- assert ! ( est4. err( ) . unwrap( ) . to_string( ) . contains( "witness scripts are not provided" ) ) ;
3673-
3674- // Remove all mint scripts
3675- tx_builder. mint_scripts = None ;
3676-
3677- // Mint exists but no witness scripts at all present
3678- let est5 = tx_builder. min_fee ( ) ;
3679- assert ! ( est5. is_err( ) ) ;
3680- assert ! ( est5. err( ) . unwrap( ) . to_string( ) . contains( "witness scripts are not provided" ) ) ;
3657+ // Native script assertion has been commented out in `.min_fee`
3658+ // Until implemented in a more performant manner
3659+ // TODO: these test parts might be returned back when it's done
3660+
3661+ // // Remove one mint script
3662+ // tx_builder.mint_scripts =
3663+ // Some(NativeScripts::from(vec![tx_builder.mint_scripts.unwrap().get(1)]));
3664+ //
3665+ // // Now two different policies are minted but only one witness script is present
3666+ // let est3 = tx_builder.min_fee();
3667+ // assert!(est3.is_err());
3668+ // assert!(est3.err().unwrap().to_string().contains(&format!("{:?}", hex::encode(policy_id1.to_bytes()))));
3669+ //
3670+ // // Remove all mint scripts
3671+ // tx_builder.mint_scripts = Some(NativeScripts::new());
3672+ //
3673+ // // Mint exists but no witness scripts at all present
3674+ // let est4 = tx_builder.min_fee();
3675+ // assert!(est4.is_err());
3676+ // assert!(est4.err().unwrap().to_string().contains("witness scripts are not provided"));
3677+ //
3678+ // // Remove all mint scripts
3679+ // tx_builder.mint_scripts = None;
3680+ //
3681+ // // Mint exists but no witness scripts at all present
3682+ // let est5 = tx_builder.min_fee();
3683+ // assert!(est5.is_err());
3684+ // assert!(est5.err().unwrap().to_string().contains("witness scripts are not provided"));
36813685 }
36823686
36833687 #[ test]
0 commit comments