mirror of
https://github.com/waku-org/waku-rust-bindings.git
synced 2025-01-12 15:44:13 +00:00
fix: default to empty vec if meta field not present (#59)
This commit is contained in:
parent
6a2d449d7d
commit
98144f762f
@ -89,7 +89,7 @@ pub struct WakuMessage {
|
||||
version: WakuMessageVersion,
|
||||
/// Unix timestamp in nanoseconds
|
||||
timestamp: usize,
|
||||
#[serde(with = "base64_serde")]
|
||||
#[serde(with = "base64_serde", default = "Vec::new")]
|
||||
meta: Vec<u8>,
|
||||
ephemeral: bool,
|
||||
// TODO: implement RLN fields
|
||||
|
Loading…
x
Reference in New Issue
Block a user