Skip to content

Commit

Permalink
dApp staking - crate visibility (#1345)
Browse files Browse the repository at this point in the history
* dApp staking - crate visibility

* Remaining changes

* Integration test fix
  • Loading branch information
Dinonard authored Aug 30, 2024
1 parent cc87612 commit 4f74868
Show file tree
Hide file tree
Showing 10 changed files with 140 additions and 151 deletions.
11 changes: 0 additions & 11 deletions pallets/dapp-staking/src/test/tests_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,6 @@ fn period_info_basic_checks() {
assert!(info.is_next_period(next_subperiod_start_era + 1));
}

#[test]
fn protocol_state_default() {
let protocol_state = ProtocolState::default();

assert_eq!(protocol_state.era, 0);
assert_eq!(
protocol_state.next_era_start, 1,
"Era should start immediately on the first block"
);
}

#[test]
fn protocol_state_basic_checks() {
let mut protocol_state = ProtocolState::default();
Expand Down
Loading

0 comments on commit 4f74868

Please sign in to comment.