Use `AccountId` in `orchard::keys::SpendingKey::from_zip32_seed`
This was necessary as of `orchard 0.7`, but due to CI not checking with the `orchard` feature flag at the time the crate was updated, CI did not catch this.
This commit is contained in:
parent
c5af1e0dd2
commit
b1d9689b8a
|
@ -26,7 +26,7 @@ use crate::{
|
||||||
ShieldedProtocol,
|
ShieldedProtocol,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(any(feature = "transparent-inputs", feature = "orchard"))]
|
#[cfg(any(feature = "transparent-inputs"))]
|
||||||
use std::convert::Infallible;
|
use std::convert::Infallible;
|
||||||
|
|
||||||
#[cfg(feature = "transparent-inputs")]
|
#[cfg(feature = "transparent-inputs")]
|
||||||
|
|
|
@ -285,7 +285,8 @@ mod tests {
|
||||||
fn ua_round_trip() {
|
fn ua_round_trip() {
|
||||||
#[cfg(feature = "orchard")]
|
#[cfg(feature = "orchard")]
|
||||||
let orchard = {
|
let orchard = {
|
||||||
let sk = orchard::keys::SpendingKey::from_zip32_seed(&[0; 32], 0, 0).unwrap();
|
let sk =
|
||||||
|
orchard::keys::SpendingKey::from_zip32_seed(&[0; 32], 0, AccountId::ZERO).unwrap();
|
||||||
let fvk = orchard::keys::FullViewingKey::from(&sk);
|
let fvk = orchard::keys::FullViewingKey::from(&sk);
|
||||||
Some(fvk.address_at(0u32, orchard::keys::Scope::External))
|
Some(fvk.address_at(0u32, orchard::keys::Scope::External))
|
||||||
};
|
};
|
||||||
|
|
|
@ -811,7 +811,8 @@ mod tests {
|
||||||
|
|
||||||
#[cfg(feature = "orchard")]
|
#[cfg(feature = "orchard")]
|
||||||
let orchard = {
|
let orchard = {
|
||||||
let sk = orchard::keys::SpendingKey::from_zip32_seed(&[0; 32], 0, 0).unwrap();
|
let sk =
|
||||||
|
orchard::keys::SpendingKey::from_zip32_seed(&[0; 32], 0, AccountId::ZERO).unwrap();
|
||||||
Some(orchard::keys::FullViewingKey::from(&sk))
|
Some(orchard::keys::FullViewingKey::from(&sk))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue