X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=protocol%2Fbc%2Ftypes%2Fclaim_pegin.go;h=b013205124083a8ee4e363ec53d5e7477c5f5fdc;hp=aede97666f21f5e4555cca7d31b225edde51ab4e;hb=ddc7106558f020bde24cc337d51649611dddaba8;hpb=7d76d575f5101652fba26714b1b6b6523220e126;ds=sidebyside diff --git a/protocol/bc/types/claim_pegin.go b/protocol/bc/types/claim_pegin.go index aede9766..b0132051 100644 --- a/protocol/bc/types/claim_pegin.go +++ b/protocol/bc/types/claim_pegin.go @@ -4,11 +4,6 @@ import ( "github.com/vapor/protocol/bc" ) -type ClaimCommitment struct { - bc.AssetAmount - VMVersion uint64 - ControlProgram []byte -} // ClaimInput satisfies the TypedInput interface and represents a spend transaction. type ClaimInput struct { @@ -17,8 +12,8 @@ type ClaimInput struct { SpendCommitment } -// NewClaimInputInput create a new SpendInput struct. -func NewClaimInputInput(arguments [][]byte, sourceID bc.Hash, assetID bc.AssetID, amount, sourcePos uint64, controlProgram []byte) *TxInput { +// NewClaimInput create a new SpendInput struct. +func NewClaimInput(arguments [][]byte, sourceID bc.Hash, assetID bc.AssetID, amount, sourcePos uint64, controlProgram []byte) *TxInput { sc := SpendCommitment{ AssetAmount: bc.AssetAmount{