- spentOutput := entryMap[*spend.SpentOutputId].(*bc.IntraChainOutput)
- spend.SetDestination(&muxID, spentOutput.Source.Value, spend.Ordinal)
+ switch spentOutput := entryMap[*spend.SpentOutputId].(type) {
+ case *bc.IntraChainOutput:
+ spend.SetDestination(&muxID, spentOutput.Source.Value, spend.Ordinal)
+
+ case *bc.VoteOutput:
+ spend.SetDestination(&muxID, spentOutput.Source.Value, spend.Ordinal)
+ }