Skip to content

Commit

Permalink
Merge pull request #220 from Polimec/feature/fix_oracle_for_live_storage
Browse files Browse the repository at this point in the history
fix live node storage
  • Loading branch information
vstam1 authored Apr 2, 2024
2 parents 4464386 + 9de02d1 commit 91568ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pallets/oracle-ocw/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ pub mod pallet {
(AssetName::PLMC, Zero::zero()),
]),
};
// Fix for missing PLMC in last_send_for_assets for old nodes, that did not have PLMC in the list.
if !last_send_for_assets.contains_key(&AssetName::PLMC) {
last_send_for_assets.insert(AssetName::PLMC, Zero::zero());
};
let assets = last_send_for_assets
.iter()
.filter_map(|(asset_name, last_send)| {
Expand Down

0 comments on commit 91568ff

Please sign in to comment.