Skip to content

Commit

Permalink
Add delegate field
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-yu committed Mar 12, 2024
1 parent d190724 commit e026d84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index/updater/inscription_updater/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ pub struct StreamEvent {
metadata: Option<Value>,
metaprotocol: Option<String>,
pointer: Option<u64>,
delegate: Option<String>,

// plugins
brc20: Option<BRC20>,
Expand Down Expand Up @@ -216,6 +217,7 @@ impl StreamEvent {
metadata: None,
metaprotocol: None,
pointer: None,
delegate: None,
brc20: None,
domain: None,
old_location: None,
Expand Down Expand Up @@ -294,6 +296,7 @@ impl StreamEvent {
}
None => None,
};
self.delegate = inscription.delegate().map(|d| d.to_string());
self
}

Expand Down

0 comments on commit e026d84

Please sign in to comment.