- switch spentOutput := tx.Entries[*e.SpentOutputId].(type) {
- case *bc.IntraChainOutput:
- a1 := spentOutput.Source.Value.AssetId.Bytes()
- assetID = &a1
- amount = &spentOutput.Source.Value.Amount
- destPos = &e.WitnessDestination.Position
- s := e.SpentOutputId.Bytes()
- spentOutputID = &s
+ spentOutput := tx.Entries[*e.SpentOutputId].(*bc.IntraChainOutput)
+ a1 := spentOutput.Source.Value.AssetId.Bytes()
+ assetID = &a1
+ amount = &spentOutput.Source.Value.Amount
+ destPos = &e.WitnessDestination.Position
+ s := e.SpentOutputId.Bytes()
+ spentOutputID = &s
+
+ case *bc.VetoInput:
+ voteOutput := tx.Entries[*e.SpentOutputId].(*bc.VoteOutput)
+ a1 := voteOutput.Source.Value.AssetId.Bytes()
+ assetID = &a1
+ amount = &voteOutput.Source.Value.Amount
+ destPos = &e.WitnessDestination.Position
+ s := e.SpentOutputId.Bytes()
+ spentOutputID = &s