Skip to content

Commit

Permalink
Add witness for delegator vote plans (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 authored Jul 23, 2024
1 parent 5648f5a commit 4e30796
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-shrimps-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@penumbra-zone/wasm': minor
---

Witness delegator vote plans
4 changes: 4 additions & 0 deletions packages/wasm/crate/src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ pub fn witness(transaction_plan: &[u8], stored_tree: JsValue) -> WasmResult<Vec<
plan.swap_claim_plans()
.map(|swap_claim| swap_claim.swap_plaintext.swap_commitment()),
)
.chain(
plan.delegator_vote_plans()
.map(|vote_plan| vote_plan.staked_note.commit()),
)
.collect();

let anchor = sct.root();
Expand Down

0 comments on commit 4e30796

Please sign in to comment.