Support trailing commas in create_db

This commit is contained in:
Luke Parker
2023-11-18 20:54:37 -05:00
parent be48dcc4a4
commit 6e4ecbc90c
7 changed files with 7 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ use crate::{Get, DbTxn, create_db};
create_db! {
CosignerDb {
Completed: (id: [u8; 32]) -> (),
Attempt: (id: [u8; 32], attempt: u32) -> ()
Attempt: (id: [u8; 32], attempt: u32) -> (),
}
}

View File

@@ -39,7 +39,7 @@ create_db!(
// These do assume a key is only used once across sets, which holds true so long as a single
// participant is honest in their execution of the protocol
KeysDb: (network_key: &[u8]) -> Vec<u8>,
NetworkKey: (substrate_key: [u8; 32]) -> Vec<u8>
NetworkKey: (substrate_key: [u8; 32]) -> Vec<u8>,
}
);