diff --git a/Cargo.toml b/Cargo.toml index aef5de4..c92f587 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 ={ version="0.1.0", path="../rusk/contracts/stake-types/" } + [dev-dependencies] rand = "^0.8" diff --git a/src/imp.rs b/src/imp.rs index 33bd45c..d7cbf9b 100644 --- a/src/imp.rs +++ b/src/imp.rs @@ -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; @@ -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,