diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-04 08:20:30 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-08-04 08:20:30 +0100 |
| commit | 6ae42e67d9da36f6c2e1356acba30a3a62112bc7 (patch) | |
| tree | 33c1ba06fc1bf79311a36693754b120ec8c67a33 /test_utils/src | |
| parent | a7cabb96df30cd5d26f63affdb023b0706a387d1 (diff) | |
fix: `t` tag `revision-root` ~> `root-revision`
NIP-34 specifies patch revisions should have a `t` tag of
`root-revision` whereas we have been using `revision-root`.
this fixes it and and handles events created with the incorrect tag.
Diffstat (limited to 'test_utils/src')
| -rw-r--r-- | test_utils/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 3ae004f..6d0dd45 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -1182,7 +1182,7 @@ pub fn get_proposal_branch_name_from_events( | |||
| 1182 | if !event | 1182 | if !event |
| 1183 | .tags | 1183 | .tags |
| 1184 | .iter() | 1184 | .iter() |
| 1185 | .any(|t| t.as_slice()[1].eq("revision-root")) | 1185 | .any(|t| ["revision-root", "root-revision"].contains(&t.as_slice()[1].as_str())) |
| 1186 | && event.tags.iter().any(|t| { | 1186 | && event.tags.iter().any(|t| { |
| 1187 | t.as_slice()[0].eq("branch-name") && t.as_slice()[1].eq(branch_name_in_event) | 1187 | t.as_slice()[0].eq("branch-name") && t.as_slice()[1].eq(branch_name_in_event) |
| 1188 | }) | 1188 | }) |