Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change unstake to use stake-contract-types #98

Merged
merged 3 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dusk-wallet-core"
version = "0.23.0-plonk.0.16"
version = "0.24.0-plonk.0.16-rc.0"
edition = "2021"
description = "The core functionality of the Dusk wallet"
license = "MPL-2.0"
Expand All @@ -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
Loading