Skip to content

Commit b06edff

Browse files
committed
Merge branch 'brent/refactor-past-epoch-offsets' into draft-pos
* brent/refactor-past-epoch-offsets: [ci] wasm checksums update changelog: add #1943 test/PoS/epoched: init PoS params and fix `PastEpochs` type param test/eth: init storage with PoS params where needed cleaning: remove unused code + improve docstrings refactor `Epoched` for past epochs
2 parents bd8b57f + 812b2c2 commit b06edff

File tree

5 files changed

+198
-224
lines changed

5 files changed

+198
-224
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Improve the Epoched data structure's bookkeeping of past
2+
epochs, now parameterizable by PoS and governance params.
3+
([\#1943](https://github.com/anoma/namada/pull/1943))

ethereum_bridge/src/protocol/transactions/votes/update.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ mod tests {
376376
#[test]
377377
fn test_apply_duplicate_votes() -> Result<()> {
378378
let mut wl_storage = TestWlStorage::default();
379+
test_utils::init_default_storage(&mut wl_storage);
379380

380381
let validator = address::testing::established_address_1();
381382
let already_voted_height = BlockHeight(100);
@@ -411,6 +412,7 @@ mod tests {
411412
#[test]
412413
fn test_calculate_already_seen() -> Result<()> {
413414
let mut wl_storage = TestWlStorage::default();
415+
test_utils::init_default_storage(&mut wl_storage);
414416
let event = default_event();
415417
let keys = vote_tallies::Keys::from(&event);
416418
let tally_pre = TallyParams {

0 commit comments

Comments
 (0)