Skip to content

fix(platform): start as paused was not working #2582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 30, 2025
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