Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rajranjan0608 committed Dec 9, 2024
1 parent 5901d81 commit 1a1049a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mapper/pchain/tx_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,11 @@ func (t *TxParser) isMultisig(utxoid avax.UTXOID) (bool, error) {
// Consider the UTXO as multisig if it is not found in the dependency tx.
// Possible for dependency txs like [DisableL1ValidatorTx] or [SetL1ValidatorWeightTx].
// These unfound UTXOs are generated by the network but are not included in the tx bytes.
return true, nil
switch dependencyTx.Tx.Unsigned.(type) {
case *txs.DisableL1ValidatorTx, *txs.SetL1ValidatorWeightTx:
return true, nil
}
return false, errFailedToCheckMultisig
}

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

0 comments on commit 1a1049a

Please sign in to comment.