Skip to content

Commit

Permalink
Change unstake to use stake-contract-types
Browse files Browse the repository at this point in the history
Co-authored-by: Milosz Muszynski <milosz.muszynski@gmail.com>
  • Loading branch information
herr-seppia and miloszm committed Dec 15, 2023
1 parent 033ecd7 commit b58f55e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ dusk-bls12_381-sign = { version = "0.5", default-features = false }
rkyv = { version = "0.7", default-features = false }
ff = { version = "0.13", default-features = false }

stake-contract-types = "0.0.1-rc.1"

[dev-dependencies]
rand = "^0.8"

Expand Down
2 changes: 2 additions & 0 deletions src/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use rkyv::ser::serializers::{
use rkyv::validation::validators::CheckDeserializeError;
use rkyv::Serialize;
use rusk_abi::ContractId;
use stake_contract_types::Unstake;

const MAX_INPUT_NOTES: usize = 4;

Expand Down Expand Up @@ -581,6 +582,7 @@ where

let signature = unstake_sign(&sk, &pk, stake.counter, unstake_note);

let unstake_note = unstake_note.to_bytes().to_vec();
let unstake = Unstake {
public_key: pk,
signature,
Expand Down

0 comments on commit b58f55e

Please sign in to comment.