We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8ce45 commit 206678fCopy full SHA for 206678f
components/chainhook-event-observer/src/indexer/bitcoin/mod.rs
@@ -430,8 +430,9 @@ fn try_parse_ordinal_operation(
430
_block_height: u64,
431
_ctx: &Context,
432
) -> Option<OrdinalOperation> {
433
- for input in tx.vin.iter() {
434
- if let Some(ref witnesses) = input.txinwitness {
+ // This should eventually become a loop once/if there is settlement on https://github.com/casey/ord/issues/2000.
+ if let Some(first_input) = tx.vin.get(0) {
435
+ if let Some(ref witnesses) = first_input.txinwitness {
436
for bytes in witnesses.iter() {
437
let script = Script::from(bytes.to_vec());
438
let parser = InscriptionParser {
0 commit comments