Skip to content

Commit

Permalink
small change in state
Browse files Browse the repository at this point in the history
  • Loading branch information
dorin-iancu committed Nov 18, 2024
1 parent 1645824 commit a2285e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dex/router/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub trait StateModule:
#[endpoint]
fn pause(&self, address: ManagedAddress) {
if address == self.blockchain().get_sc_address() {
self.state().set(false);
self.state().set(INACTIVE);
} else {
self.check_is_pair_sc(&address);

Expand All @@ -31,7 +31,7 @@ pub trait StateModule:
#[endpoint]
fn resume(&self, address: ManagedAddress) {
if address == self.blockchain().get_sc_address() {
self.state().set(true);
self.state().set(ACTIVE);
} else {
self.check_is_pair_sc(&address);
let _: IgnoreValue = self
Expand Down

0 comments on commit a2285e0

Please sign in to comment.