Skip to content

Commit

Permalink
fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiderson committed Nov 20, 2024
1 parent 25258ba commit 114a684
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ All notable changes to this project will be documented in this file.
### 🚀 Features

- Asset Hub transactions with fee currency
- Autofill tip with asset
- Pass asset id into transaction constructor to properly select fee currency
- Autofill tip with asset
- Pass asset id into transaction constructor to properly select fee currency

### 🧪 Testing

Expand Down
20 changes: 4 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ axum-macros = "0.4"
primitive-types = { version = "0.13", features = ["codec", "serde"] }
jsonrpsee = { version = "0.24", features = ["ws-client"] }
thiserror = "2"
frame-metadata = "17"
frame-metadata = "18"
const-hex = "1"
codec = { package = "parity-scale-codec", version = "3", features = [
"chain-error",
Expand Down
7 changes: 5 additions & 2 deletions src/chain/tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ use crate::{
use frame_metadata::v15::RuntimeMetadataV15;
use jsonrpsee::ws_client::{WsClient, WsClientBuilder};
use serde_json::Value;
use std::{collections::{HashMap, HashSet}, time::SystemTime};
use std::{
collections::{HashMap, HashSet},
time::SystemTime,
};
use substrate_crypto_light::common::AsBase58;
use substrate_parser::{AsMetadata, ShortSpecs};
use time::{format_description::well_known::Rfc3339, OffsetDateTime};
Expand Down Expand Up @@ -245,7 +248,7 @@ pub fn start_chain_watch(
// reliably expected event (through XCM). Thus we just scan almost
// all accounts, every time. Please submit a PR or an issue if you
// figure out a reliable optimization for this.
for (id, invoice) in watched_accounts.iter().filter(|(id, _)| checked_accounts.contains(id)) {
for (id, invoice) in watched_accounts.iter().filter(|(id, _)| !checked_accounts.contains(id)) {
match invoice.check(&client, &watcher, &block).await {
Ok(true) => {
state.order_paid(id.clone()).await;
Expand Down
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
use codec::Error as ScaleError;
use frame_metadata::v15::RuntimeMetadataV15;
use jsonrpsee::core::ClientError;
use mnemonic_external::error::ErrorWordList;
use mnemonic_external::error::ErrorMnemonic;
use serde_json::Error as JsonError;
use serde_json::Value;
use sled::Error as DatabaseError;
Expand Down Expand Up @@ -426,7 +426,7 @@ pub enum SignerError {
SignerDown,

#[error("seed phrase is invalid")]
InvalidSeed(#[from] ErrorWordList),
InvalidSeed(#[from] ErrorMnemonic),

#[error("derivation was failed")]
InvalidDerivation(String),
Expand Down

0 comments on commit 114a684

Please sign in to comment.