Correct compilation errors

This commit is contained in:
Luke Parker
2024-08-23 21:21:02 -04:00
parent bc0cc5a754
commit ce805c8cc8
8 changed files with 77 additions and 50 deletions

View File

@@ -3,10 +3,13 @@ use std::io;
use group::GroupEncoding;
use serai_primitives::Balance;
use serai_primitives::{ExternalAddress, Balance};
use crate::Id;
/// An address on the external network.
pub trait Address: Send + Sync + TryFrom<ExternalAddress> {}
/// The type of the output.
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
pub enum OutputType {
@@ -81,7 +84,7 @@ impl OutputType {
}
/// A received output.
pub trait ReceivedOutput<K: GroupEncoding, A>:
pub trait ReceivedOutput<K: GroupEncoding, A: Address>:
Send + Sync + Sized + Clone + PartialEq + Eq + Debug
{
/// The type used to identify this output.