Skip to content

Commit

Permalink
fix: Fixed incorrect OffchainKv function
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkingLee committed Feb 7, 2024
1 parent fdc4610 commit 745e801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/pallet-melo-store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ impl<T: Config> Pallet<T> {
.iter()
.enumerate()
.filter_map(|(i, metadata)| {
let mut db = OffchainKv::new();
let mut db = OffchainKv::new(None);
match ReliabilityId::app_confidence(metadata.app_id, metadata.nonce)
.get_confidence(&mut db)
{
Expand All @@ -551,7 +551,7 @@ impl<T: Config> Pallet<T> {
/// chain. Returns a vector of block numbers representing the unavailable blocks.
pub fn fetch_unavailability_blocks() -> Vec<BlockNumberFor<T>> {
let now = <frame_system::Pallet<T>>::block_number();
let mut db = OffchainKv::new();
let mut db = OffchainKv::new(None);

let last: BlockNumberFor<T> =
match ReliabilityManager::new(db.clone()).get_last_processed_block() {
Expand Down

0 comments on commit 745e801

Please sign in to comment.