Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ impl TokenConfigurationV0Setters for TokenConfiguration {
}
}

/// Sets if we should start as paused. Meaning transfers will not work till unpaused
fn set_start_as_paused(&mut self, start_as_paused: bool) {
match self {
TokenConfiguration::V0(v0) => v0.set_start_as_paused(start_as_paused),
}
}

/// Sets the maximum supply.
fn set_max_supply(&mut self, max_supply: Option<u64>) {
match self {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ pub trait TokenConfigurationV0Setters {
/// Sets the base supply.
fn set_base_supply(&mut self, base_supply: TokenAmount);

/// Sets if we should start as paused. Meaning transfers will not work till unpaused
fn set_start_as_paused(&mut self, start_as_paused: bool);

/// Sets the maximum supply.
fn set_max_supply(&mut self, max_supply: Option<TokenAmount>);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ impl TokenConfigurationV0Setters for TokenConfigurationV0 {
self.base_supply = base_supply;
}

/// Sets if we should start as paused. Meaning transfers will not work till unpaused
fn set_start_as_paused(&mut self, start_as_paused: bool) {
self.start_as_paused = start_as_paused;
}

/// Sets the maximum supply.
fn set_max_supply(&mut self, max_supply: Option<TokenAmount>) {
self.max_supply = max_supply;
Expand Down
Loading
Loading