Skip to content
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
4 changes: 2 additions & 2 deletions rs/nns/governance/src/governance/voting_power_snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ fn insert_and_truncate<Value: Storable>(
impl VotingPowerSnapshots {
pub fn new(maps_memory: DefaultMemory, totals_memory: DefaultMemory) -> Self {
Self {
neuron_id_to_voting_power_maps: StableBTreeMap::new(maps_memory),
voting_power_totals: StableBTreeMap::new(totals_memory),
neuron_id_to_voting_power_maps: StableBTreeMap::init(maps_memory),
voting_power_totals: StableBTreeMap::init(totals_memory),
}
}

Expand Down
2 changes: 2 additions & 0 deletions rs/nns/governance/unreleased_changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ on the process that this file is part of, see

## Fixed

* Use `StableBTreeMap::init` instead of `::new` for voting power snapshots.

## Security