Skip to content

Commit

Permalink
Implement Default for RuneEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 17, 2023
1 parent c738cb2 commit 49ec31c
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 270 deletions.
13 changes: 13 additions & 0 deletions src/index/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ pub(crate) struct RuneEntry {
pub(crate) symbol: Option<char>,
}

impl Default for RuneEntry {
fn default() -> Self {
Self {
burned: 0,
divisibility: 0,
etching: Txid::all_zeros(),
rune: Rune(0),
supply: 0,
symbol: None,
}
}
}

pub(super) type RuneEntryValue = (u128, u8, (u128, u128), u128, u128, u32);

impl Entry for RuneEntry {
Expand Down
Loading

0 comments on commit 49ec31c

Please sign in to comment.