Skip to content

Commit

Permalink
fix: missing fields in NativeScript fingerprint (#246)
Browse files Browse the repository at this point in the history
* fix: missing fields in NativeScript fingerprint

* feat: include policy_id in fingerprint
rvcas authored Apr 13, 2022
1 parent 30426df commit aa3727c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/filters/fingerprint.rs
Original file line number Diff line number Diff line change
@@ -141,10 +141,11 @@ fn build_fingerprint(event: &Event, seed: u32) -> Result<String, Error> {
.with_prefix("coll")
.append_slice(tx_id)?
.append_to_string(index)?,
EventData::NativeScript {} => b
EventData::NativeScript { policy_id, .. } => b
.with_slot(&event.context.slot)
.with_prefix("scpt")
.append_optional(&event.context.tx_hash)?,
.append_optional(&event.context.tx_hash)?
.append_slice(policy_id)?,
EventData::PlutusScript { .. } => b
.with_slot(&event.context.slot)
.with_prefix("plut")

0 comments on commit aa3727c

Please sign in to comment.