Commit d78cbcb
committed
Remove unused ShelleyToBabbageEra witness from UpdateProtocolParametersPreConway
The `eon` field was never read: the only consumer, `shelleyToBabbageProtocolParametersUpdate`,
bound it as `_stB`. It was, however, the sole reason `pUpdateProtocolParametersCmd` needed a
seven-way match on the `ShelleyBasedEra` constructors to conjure the witness.
Dropping the field lets the parser use `inEonForShelleyBasedEra` like the rest of this branch,
and collapses the no-op `forShelleyBasedEraMaybeEon` lookup in
`pGovernanceActionProtocolParametersUpdateCmd` to `Just`.
No behaviour change: `create-protocol-parameters-update` is still registered for all five
pre-Conway eras and for Conway onwards.1 parent fa7106e commit d78cbcb
4 files changed
Lines changed: 29 additions & 41 deletions
File tree
- .changes
- cardano-cli/src/Cardano/CLI/Compatible/Governance
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
Lines changed: 26 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | | - | |
71 | | - | |
| 69 | + | |
72 | 70 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 71 | + | |
| 72 | + | |
77 | 73 | | |
78 | 74 | | |
79 | 75 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 76 | + | |
| 77 | + | |
88 | 78 | | |
89 | 79 | | |
90 | | - | |
| 80 | + | |
91 | 81 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
106 | 95 | | |
107 | 96 | | |
108 | 97 | | |
109 | 98 | | |
110 | 99 | | |
111 | | - | |
| 100 | + | |
112 | 101 | | |
113 | 102 | | |
114 | 103 | | |
115 | 104 | | |
116 | 105 | | |
117 | | - | |
| 106 | + | |
118 | 107 | | |
119 | 108 | | |
120 | | - | |
121 | | - | |
| 109 | + | |
| 110 | + | |
122 | 111 | | |
123 | 112 | | |
124 | 113 | | |
125 | 114 | | |
126 | 115 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
130 | 119 | | |
131 | 120 | | |
132 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
0 commit comments