Skip to content
Snippets Groups Projects
Commit bc7a0ce3 authored by Éloïs's avatar Éloïs
Browse files

feat(dbs): add field currency_name for CurrencyParamsDbV2

parent 457bfe83
No related branches found
No related tags found
No related merge requests found
Pipeline #12514 passed
...@@ -15,8 +15,11 @@ ...@@ -15,8 +15,11 @@
use crate::*; use crate::*;
#[derive(Clone, Copy, Debug, Default, Deserialize, PartialEq, Serialize)] #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
pub struct CurrencyParamsDbV2(pub CurrencyParameters); pub struct CurrencyParamsDbV2 {
pub currency_name: CurrencyName,
pub params: CurrencyParameters,
}
impl AsBytes for CurrencyParamsDbV2 { impl AsBytes for CurrencyParamsDbV2 {
fn as_bytes<T, F: FnMut(&[u8]) -> T>(&self, mut f: F) -> T { fn as_bytes<T, F: FnMut(&[u8]) -> T>(&self, mut f: F) -> T {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment