Add an unknown default for Chain type

Change-Id: I1c175c906311063dd10db4ea3ed693098592585d
This commit is contained in:
Reisen 2021-05-04 05:01:53 +00:00
parent 8effae6cb5
commit 249fc68107
1 changed files with 7 additions and 0 deletions

View File

@ -18,5 +18,12 @@ pub struct BridgeConfig {
#[repr(u8)]
#[derive(AnchorSerialize, AnchorDeserialize, Clone, Copy, Debug)]
pub enum Chain {
Unknown,
Solana = 1u8,
}
impl Default for Chain {
fn default() -> Self {
Chain::Unknown
}
}