From 012b42ff98aabe13a007f2068c47b6710688abb7 Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Mon, 1 Apr 2024 02:39:36 +0900 Subject: [PATCH] Add missing Plutus v3 witness indexing --- indexer/tasks/src/multiera/multiera_stake_credentials.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/indexer/tasks/src/multiera/multiera_stake_credentials.rs b/indexer/tasks/src/multiera/multiera_stake_credentials.rs index 62f1127b..2f7b5c22 100644 --- a/indexer/tasks/src/multiera/multiera_stake_credentials.rs +++ b/indexer/tasks/src/multiera/multiera_stake_credentials.rs @@ -194,4 +194,13 @@ fn queue_witness( ); } } + if let Some(scripts) = &witness_set.plutus_v3_scripts { + for script in scripts { + vkey_relation_map.add_relation( + tx_id, + script.hash().to_raw_bytes(), + TxCredentialRelationValue::Witness, + ); + } + } }