Orchard: borrow local.bytes for pallas::Affine serde helper
This commit is contained in:
parent
009e1dd37e
commit
b93a71c779
|
@ -47,7 +47,7 @@ pub struct Affine {
|
||||||
|
|
||||||
impl From<Affine> for pallas::Affine {
|
impl From<Affine> for pallas::Affine {
|
||||||
fn from(local: Affine) -> Self {
|
fn from(local: Affine) -> Self {
|
||||||
pallas::Affine::from_bytes(local.bytes).unwrap()
|
pallas::Affine::from_bytes(&local.bytes).unwrap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue