Skip to content

Commit

Permalink
fix: deserialize proposal actions (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejVukosav authored Nov 8, 2024
1 parent cc87291 commit 5b107b1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crates/node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,12 @@ impl Node {
application_id: context.application_id,
});
};
for (proposal_id, actions) in &outcome.proposals {
// todo deserialize actions into Vec<ProposalAction>
let action = ProposalAction::Transfer {
receiver_id: "vuki.testnet".into(),
amount: 0,
};
let actions = vec![action];

for (proposal_id, actions) in &outcome.proposals {
let actions: Vec<ProposalAction> = from_slice(&actions).map_err(|e| {
error!(%e, "Failed to deserialize proposal actions.");
CallError::InternalError
})?;
drop(
self.ctx_manager
.propose(
Expand Down

0 comments on commit 5b107b1

Please sign in to comment.