File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 99)
1010
1111type DeletedState struct {
12- IsCanceledByUser bool `json:"is_canceled_by_user"`
13- IsOutOfFunds bool `json:"is_out_of_funds"`
12+ IsCanceledByUser bool `json:"is_canceled_by_user"`
13+ IsOutOfFunds bool `json:"is_out_of_funds"`
14+ IsCanceledByCollective bool `json:"is_canceled_by_collective"`
1415}
1516
1617// Decode implementation for the enum type
@@ -25,6 +26,8 @@ func (r *DeletedState) Decode(decoder scale.Decoder) error {
2526 r .IsCanceledByUser = true
2627 case 1 :
2728 r .IsOutOfFunds = true
29+ case 2 :
30+ r .IsCanceledByCollective = true
2831 default :
2932 return fmt .Errorf ("unknown deleted state value" )
3033 }
@@ -38,6 +41,8 @@ func (r DeletedState) Encode(encoder scale.Encoder) (err error) {
3841 err = encoder .PushByte (0 )
3942 } else if r .IsOutOfFunds {
4043 err = encoder .PushByte (1 )
44+ } else if r .IsCanceledByCollective {
45+ err = encoder .PushByte (2 )
4146 }
4247 return
4348}
Original file line number Diff line number Diff line change 168168 "Cause" : {
169169 "_enum" : [
170170 " CanceledByUser" ,
171- " OutOfFunds"
171+ " OutOfFunds" ,
172+ " CanceledByCollective"
172173 ]
173174 },
174175 "NruConsumption" : {
334335 "farm_id" : " u32" ,
335336 "weight" : " u64"
336337 }
337- }
338+ }
You can’t perform that action at this time.
0 commit comments