OSDN Git Service

test: add read/write test for cross-chain input/output (#70)
[bytom/vapor.git] / protocol / bc / types / txinput.go
index c9fa0a0..7b9ba0e 100644 (file)
@@ -271,7 +271,7 @@ func (t *TxInput) writeInputCommitment(w io.Writer) (err error) {
                return inp.SpendCommitment.writeExtensibleString(w, inp.SpendCommitmentSuffix, t.AssetVersion)
 
        case *CrossChainInput:
-               if _, err = w.Write([]byte{SpendInputType}); err != nil {
+               if _, err = w.Write([]byte{CrossChainInputType}); err != nil {
                        return err
                }
                return inp.SpendCommitment.writeExtensibleString(w, inp.SpendCommitmentSuffix, t.AssetVersion)