From ec4d81a703ec593a3e6390b4b5a9a4b7c1057e00 Mon Sep 17 00:00:00 2001 From: Drew Stone Date: Tue, 5 Nov 2024 20:28:23 +0700 Subject: [PATCH] chore: fix naming --- Cargo.toml | 2 +- blueprints/examples/Cargo.toml | 2 +- blueprints/examples/src/examples/mod.rs | 2 +- blueprints/examples/src/examples/sequential_event_listener.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8309f3a0..47c17172 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,7 @@ gadget-sdk = { path = "./sdk", default-features = false, version = "0.3.0" } incredible-squaring-blueprint = { path = "./blueprints/incredible-squaring", default-features = false, version = "0.1.1" } incredible-squaring-blueprint-eigenlayer = { path = "./blueprints/incredible-squaring-eigenlayer", default-features = false, version = "0.1.1" } incredible-squaring-blueprint-symbiotic = { path = "./blueprints/incredible-squaring-symbiotic", default-features = false, version = "0.1.1" } -examples = { path = "./blueprints/examples", default-features = false, version = "0.1.1" } +blueprint-examples = { path = "./blueprints/examples", default-features = false, version = "0.1.1" } gadget-blueprint-proc-macro = { path = "./macros/blueprint-proc-macro", default-features = false, version = "0.3.0" } gadget-blueprint-proc-macro-core = { path = "./macros/blueprint-proc-macro-core", default-features = false, version = "0.1.5" } gadget-context-derive = { path = "./macros/context-derive", default-features = false, version = "0.2.0" } diff --git a/blueprints/examples/Cargo.toml b/blueprints/examples/Cargo.toml index 31faf49e..c57c1de3 100644 --- a/blueprints/examples/Cargo.toml +++ b/blueprints/examples/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "examples" +name = "blueprint-examples" version = "0.1.1" description = "A variety of example blueprint jobs, event listeners, contexts, and more." authors.workspace = true diff --git a/blueprints/examples/src/examples/mod.rs b/blueprints/examples/src/examples/mod.rs index c3b6b4a0..ce1bf6c9 100644 --- a/blueprints/examples/src/examples/mod.rs +++ b/blueprints/examples/src/examples/mod.rs @@ -1,3 +1,3 @@ pub mod periodic_web_poller; pub mod raw_tangle_events; -pub mod sequential_event_listener; \ No newline at end of file +pub mod sequential_event_listener; diff --git a/blueprints/examples/src/examples/sequential_event_listener.rs b/blueprints/examples/src/examples/sequential_event_listener.rs index 234bd685..016adf87 100644 --- a/blueprints/examples/src/examples/sequential_event_listener.rs +++ b/blueprints/examples/src/examples/sequential_event_listener.rs @@ -195,7 +195,7 @@ macro_rules! sequential_event_listener { if self.events_correlate(&sequence, &event) { sequence.$event = Some((event.clone(), log.clone())); sequence.last_update = log.block_number.unwrap_or_default(); - + if sequence.is_complete() { if let Some(seq) = self.pending_sequences.remove(&sequence.sequence_id) { let completed = (