Skip to content

Commit

Permalink
refactor: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejVukosav committed Nov 8, 2024
1 parent e00ba00 commit c63dcfc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/meroctl/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 8 additions & 3 deletions crates/node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ProposalAction>
let action = ProposalAction::Transfer {
receiver_id: "vuki.testnet".into(),
amount: 0,
Expand All @@ -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,
);
}
Expand Down

0 comments on commit c63dcfc

Please sign in to comment.