Skip to content

Commit

Permalink
[types] no reason a user coin should be frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 10, 2023
1 parent 9fcc429 commit 5b5c097
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions types/src/account_config/resources/coin_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@ use serde::{Deserialize, Serialize};
#[cfg_attr(any(test, feature = "fuzzing"), derive(Arbitrary))]
pub struct CoinStoreResource {
coin: u64,
frozen: bool,
//////// SILLY RABBIT ////////
// frozen: bool,
deposit_events: EventHandle,
withdraw_events: EventHandle,
}

impl CoinStoreResource {
pub fn new(
coin: u64,
frozen: bool,
_frozen: bool,
deposit_events: EventHandle,
withdraw_events: EventHandle,
) -> Self {
Self {
coin,
frozen,
// frozen,
deposit_events,
withdraw_events,
}
Expand All @@ -41,9 +42,9 @@ impl CoinStoreResource {
self.coin
}

pub fn frozen(&self) -> bool {
self.frozen
}
// pub fn frozen(&self) -> bool {
// self.frozen
// }

pub fn deposit_events(&self) -> &EventHandle {
&self.deposit_events
Expand Down

0 comments on commit 5b5c097

Please sign in to comment.