From 7ef276daba2d393928804a917d23dedea4320dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Mon, 10 Feb 2020 16:47:42 +0100 Subject: [PATCH] Add lock file, fix latest substrate. (#3) --- bridges/modules/ethereum/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/modules/ethereum/src/lib.rs b/bridges/modules/ethereum/src/lib.rs index 26e36f8014cc..2288c205bdac 100644 --- a/bridges/modules/ethereum/src/lib.rs +++ b/bridges/modules/ethereum/src/lib.rs @@ -400,7 +400,7 @@ impl Storage for BridgeStorage { // ensure that unfinalized headers we want to prune do not have scheduled changes if number > finalized_number { if let Some(ref blocks_at_number) = blocks_at_number { - if blocks_at_number.iter().any(|block| ScheduledChanges::exists(block)) { + if blocks_at_number.iter().any(|block| ScheduledChanges::contains_key(block)) { HeadersByNumber::insert(number, blocks_at_number); OldestUnprunedBlock::put(number); return;