OSDN Git Service

feat: add build crosschain input (#91)
[bytom/vapor.git] / protocol / bc / types / transaction.go
index a862762..08e6f6c 100644 (file)
@@ -49,10 +49,10 @@ func (tx *Tx) SetInputArguments(n uint32, args [][]byte) {
        id := tx.Tx.InputIDs[n]
        e := tx.Entries[id]
        switch e := e.(type) {
-       case *bc.Issuance:
-               e.WitnessArguments = args
        case *bc.Spend:
                e.WitnessArguments = args
+       case *bc.CrossChainInput:
+               e.WitnessArguments = args
        }
 }