-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include old_owner for transfers in StreamEvent #9
Conversation
@@ -601,6 +605,17 @@ mod stream { | |||
) | |||
.unwrap_or(Address::p2sh(&Script::default(), StreamEvent::get_network()).unwrap()), | |||
), | |||
old_owner: old_satpoint.map(|old| { | |||
Address::from_script( | |||
&tx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this tx was not the old_satpoint tx, it should be the previous one
45bed44
to
0c40e3f
Compare
@@ -682,6 +684,21 @@ mod stream { | |||
.unwrap_or_else(|_| panic!("Inscription should exist: {}", self.inscription_id)) | |||
{ | |||
self.enrich_content(inscription); | |||
let old_owner: Option<Address> = index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the &TxOut::default()
and the None
branch are not consistent of the return I think
@@ -584,7 +585,7 @@ mod stream { | |||
block_hash: BlockHash, | |||
) -> Self { | |||
StreamEvent { | |||
version: "4.0.0".to_owned(), // should match the ord-kafka docker image version | |||
version: "4.0.2".to_owned(), // should match the ord-kafka docker image version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, should be 4.0.0, the consumer side not smart enough yet
old_satpoint