X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=protocol%2Fbc%2Ftypes%2Fcrosschain_input.go;h=ee8fb9bca98101e7a15202f68dd67ce21abb999a;hp=e29673d53434f4844ebe9d70b985c78100111986;hb=f30b7541256e6a7f6f875994cb08edf3bddab93c;hpb=94ffe408f68d354070374ef01b5c1578b79d2cd9 diff --git a/protocol/bc/types/crosschain_input.go b/protocol/bc/types/crosschain_input.go index e29673d5..ee8fb9bc 100644 --- a/protocol/bc/types/crosschain_input.go +++ b/protocol/bc/types/crosschain_input.go @@ -10,15 +10,15 @@ type CrossChainInput struct { Arguments [][]byte // Witness SpendCommitment - VMVersion uint64 - AssetDefinition []byte - IssuanceProgram []byte + AssetDefinition []byte + IssuanceVMVersion uint64 + IssuanceProgram []byte } // NewCrossChainInput create a new CrossChainInput struct. // The source is created/issued by trusted federation and hence there is no need // to refer to it. -func NewCrossChainInput(arguments [][]byte, sourceID bc.Hash, assetID bc.AssetID, amount, sourcePos, vmVersion uint64, assetDefinition, issuanceProgram []byte) *TxInput { +func NewCrossChainInput(arguments [][]byte, sourceID bc.Hash, assetID bc.AssetID, amount, sourcePos, IssuanceVMVersion uint64, assetDefinition, issuanceProgram []byte) *TxInput { sc := SpendCommitment{ AssetAmount: bc.AssetAmount{ AssetId: &assetID, @@ -31,11 +31,11 @@ func NewCrossChainInput(arguments [][]byte, sourceID bc.Hash, assetID bc.AssetID return &TxInput{ AssetVersion: 1, TypedInput: &CrossChainInput{ - SpendCommitment: sc, - Arguments: arguments, - VMVersion: vmVersion, - AssetDefinition: assetDefinition, - IssuanceProgram: issuanceProgram, + SpendCommitment: sc, + Arguments: arguments, + AssetDefinition: assetDefinition, + IssuanceVMVersion: IssuanceVMVersion, + IssuanceProgram: issuanceProgram, }, } }