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, ); }