From c63dcfcb05a2cfb78bf699df677f48649f8345a3 Mon Sep 17 00:00:00 2001 From: "matej.vukosav" Date: Fri, 8 Nov 2024 12:53:09 +0700 Subject: [PATCH] refactor: clean --- crates/meroctl/src/cli.rs | 1 - crates/node/src/lib.rs | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/crates/meroctl/src/cli.rs b/crates/meroctl/src/cli.rs index 1ac9f3143..c4e543ef5 100644 --- a/crates/meroctl/src/cli.rs +++ b/crates/meroctl/src/cli.rs @@ -20,7 +20,6 @@ use app::AppCommand; use call::CallCommand; use context::ContextCommand; use identity::IdentityCommand; -use jsonrpc::CallCommand; use proxy::ProxyCommand; pub const EXAMPLES: &str = r" diff --git a/crates/node/src/lib.rs b/crates/node/src/lib.rs index fb5e9c42d..19ec4e519 100644 --- a/crates/node/src/lib.rs +++ b/crates/node/src/lib.rs @@ -438,8 +438,8 @@ impl Node { application_id: context.application_id, }); }; - for proposal in &outcome.proposals { - //todo deserialize input + for (proposal_id, actions) in &outcome.proposals { + // todo deserialize actions into Vec let action = ProposalAction::Transfer { receiver_id: "vuki.testnet".into(), amount: 0, @@ -448,7 +448,12 @@ impl Node { drop( self.ctx_manager - .propose(context_id, executor_public_key, proposal.0.clone(), actions) + .propose( + context_id, + executor_public_key, + proposal_id.clone(), + actions, + ) .await, ); }