Skip to content

Commit 1a1049a

Browse files
committed
nits
1 parent 5901d81 commit 1a1049a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mapper/pchain/tx_parser.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,11 @@ func (t *TxParser) isMultisig(utxoid avax.UTXOID) (bool, error) {
768768
// Consider the UTXO as multisig if it is not found in the dependency tx.
769769
// Possible for dependency txs like [DisableL1ValidatorTx] or [SetL1ValidatorWeightTx].
770770
// These unfound UTXOs are generated by the network but are not included in the tx bytes.
771-
return true, nil
771+
switch dependencyTx.Tx.Unsigned.(type) {
772+
case *txs.DisableL1ValidatorTx, *txs.SetL1ValidatorWeightTx:
773+
return true, nil
774+
}
775+
return false, errFailedToCheckMultisig
772776
}
773777

774778
addressable, ok := utxo.Out.(avax.Addressable)

0 commit comments

Comments
 (0)