Skip to content

Commit

Permalink
enum numbers and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aie0 committed Nov 27, 2023
1 parent afa1f50 commit 18dc655
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pallets/ddc-payouts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,17 @@ pub mod pallet {
}

#[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo, PartialEq, Default)]
// don't remove or change numbers, if needed add a new state to the end with new number
// DAC uses the state value for integration!
pub enum State {
#[default]
NotInitialized,
Initialized,
ChargingCustomers,
CustomersChargedWithFees,
CustomersCharged,
FeesDeducted,
RewardingProviders,
ProvidersRewarded,
Finalized,
NotInitialized = 1,
Initialized = 2,
ChargingCustomers = 3,
CustomersChargedWithFees = 4,
RewardingProviders = 5,
ProvidersRewarded = 6,
Finalized = 7,
}

#[pallet::call]
Expand Down

0 comments on commit 18dc655

Please sign in to comment.