Skip to content

Commit

Permalink
fix: default to empty vec if meta field not present (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
petkodes committed May 12, 2023
1 parent 6a2d449 commit 98144f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waku-bindings/src/general/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98144f7

Please sign in to comment.