@@ -51,13 +51,11 @@ impl LocallyDescribableProposalAction for ManageNeuron {
5151 "A ManageNeuron proposal is created with an empty or conflicting \
5252 values of id and neuron_id_or_subaccount. This should never happen."
5353 ) ;
54- builder. add_empty_field ( "neuron_id_or_subaccount" )
54+ builder. add_null_field ( "neuron_id_or_subaccount" )
5555 }
5656 } ;
5757
58- builder
59- . add_field_with_empty_as_fallback ( "command" , self . command . clone ( ) )
60- . build ( )
58+ builder. add_field ( "command" , self . command . clone ( ) ) . build ( )
6159 }
6260}
6361
@@ -99,13 +97,13 @@ impl From<Command> for SelfDescribingValue {
9997 println ! (
10098 "A ManageNeuron proposal is created with a MergeMaturity command. This should never happen."
10199 ) ;
102- Self :: singleton_map ( "MergeMaturity" , Self :: EMPTY )
100+ Self :: singleton_map ( "MergeMaturity" , Self :: NULL )
103101 }
104102 C :: MakeProposal ( _) => {
105103 println ! (
106104 "A ManageNeuron proposal is created with a MakeProposal command. This should never happen."
107105 ) ;
108- Self :: singleton_map ( "MakeProposal" , Self :: EMPTY )
106+ Self :: singleton_map ( "MakeProposal" , Self :: NULL )
109107 }
110108 }
111109 }
@@ -117,7 +115,7 @@ impl From<Configure> for SelfDescribingValue {
117115 println ! (
118116 "A ManageNeuron proposal is created with an empty operation. This should never happen."
119117 ) ;
120- return Self :: EMPTY ;
118+ return Self :: NULL ;
121119 } ;
122120
123121 use Operation as O ;
@@ -161,14 +159,14 @@ impl From<IncreaseDissolveDelay> for SelfDescribingValue {
161159impl From < StartDissolving > for SelfDescribingValue {
162160 fn from ( value : StartDissolving ) -> Self {
163161 let StartDissolving { } = value;
164- SelfDescribingValue :: EMPTY
162+ SelfDescribingValue :: NULL
165163 }
166164}
167165
168166impl From < StopDissolving > for SelfDescribingValue {
169167 fn from ( value : StopDissolving ) -> Self {
170168 let StopDissolving { } = value;
171- SelfDescribingValue :: EMPTY
169+ SelfDescribingValue :: NULL
172170 }
173171}
174172
@@ -198,14 +196,14 @@ impl From<SetDissolveTimestamp> for SelfDescribingValue {
198196impl From < JoinCommunityFund > for SelfDescribingValue {
199197 fn from ( value : JoinCommunityFund ) -> Self {
200198 let JoinCommunityFund { } = value;
201- SelfDescribingValue :: EMPTY
199+ SelfDescribingValue :: NULL
202200 }
203201}
204202
205203impl From < LeaveCommunityFund > for SelfDescribingValue {
206204 fn from ( value : LeaveCommunityFund ) -> Self {
207205 let LeaveCommunityFund { } = value;
208- SelfDescribingValue :: EMPTY
206+ SelfDescribingValue :: NULL
209207 }
210208}
211209
@@ -320,7 +318,7 @@ impl From<ClaimOrRefresh> for SelfDescribingValue {
320318 println ! (
321319 "A ManageNeuron proposal is created with an empty by. This should never happen."
322320 ) ;
323- return Self :: EMPTY ;
321+ return Self :: NULL ;
324322 } ;
325323
326324 match by {
@@ -359,7 +357,7 @@ impl From<Merge> for SelfDescribingValue {
359357impl From < RefreshVotingPower > for SelfDescribingValue {
360358 fn from ( value : RefreshVotingPower ) -> Self {
361359 let RefreshVotingPower { } = value;
362- SelfDescribingValue :: EMPTY
360+ SelfDescribingValue :: NULL
363361 }
364362}
365363
0 commit comments