Commit a994f03
committed
Address PR review: simplify calcMinFeeRecursive and remove redundant constraints
- Remove getMultiAssets helper and inline the MaryValue extraction, since
EraCommonConstraints guarantees Value ~ MaryValue for all eras including
Dijkstra
- Remove unnecessary parameters from go's recursive loop — utxo, pparams,
poolids, stakeDelegDeposits, drepDelegDeposits, and nExtraWitnesses are
never modified and are already in scope from the enclosing function
- Remove redundant obtainCommonConstraints calls in test generators where
constraints are already in scope from the outer call1 parent c53efcd commit a994f03
2 files changed
Lines changed: 12 additions & 36 deletions
File tree
- cardano-api
- src/Cardano/Api/Experimental/Tx/Internal
- test/cardano-api-test/Test/Cardano/Api
Lines changed: 12 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
| 763 | + | |
772 | 764 | | |
773 | 765 | | |
774 | | - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
775 | 770 | | |
776 | 771 | | |
777 | 772 | | |
| |||
783 | 778 | | |
784 | 779 | | |
785 | 780 | | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | 781 | | |
793 | | - | |
794 | | - | |
| 782 | + | |
| 783 | + | |
795 | 784 | | |
796 | 785 | | |
797 | 786 | | |
798 | | - | |
| 787 | + | |
799 | 788 | | |
800 | 789 | | |
801 | 790 | | |
802 | 791 | | |
803 | 792 | | |
804 | | - | |
| 793 | + | |
805 | 794 | | |
806 | 795 | | |
807 | 796 | | |
808 | | - | |
| 797 | + | |
809 | 798 | | |
810 | | - | |
| 799 | + | |
811 | 800 | | |
812 | 801 | | |
813 | | - | |
| 802 | + | |
814 | 803 | | |
815 | 804 | | |
816 | 805 | | |
| |||
826 | 815 | | |
827 | 816 | | |
828 | 817 | | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | 818 | | |
836 | 819 | | |
837 | 820 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | 609 | | |
611 | 610 | | |
612 | 611 | | |
| |||
644 | 643 | | |
645 | 644 | | |
646 | 645 | | |
647 | | - | |
648 | 646 | | |
649 | 647 | | |
650 | 648 | | |
| |||
678 | 676 | | |
679 | 677 | | |
680 | 678 | | |
681 | | - | |
682 | 679 | | |
683 | 680 | | |
684 | 681 | | |
| |||
787 | 784 | | |
788 | 785 | | |
789 | 786 | | |
790 | | - | |
791 | 787 | | |
792 | 788 | | |
793 | 789 | | |
| |||
827 | 823 | | |
828 | 824 | | |
829 | 825 | | |
830 | | - | |
831 | 826 | | |
832 | 827 | | |
833 | 828 | | |
834 | 829 | | |
835 | 830 | | |
836 | | - | |
837 | 831 | | |
838 | 832 | | |
839 | 833 | | |
| |||
955 | 949 | | |
956 | 950 | | |
957 | 951 | | |
958 | | - | |
959 | 952 | | |
960 | 953 | | |
961 | 954 | | |
| |||
0 commit comments