X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=protocol%2Fvalidation%2Fvmcontext.go;h=10b77d8f29957e021dfc59f60f8b4b4435a7d643;hp=37cbd5ccc5cad8049ac14ce79e1f51f741c5b4aa;hb=15e9d82900038c86a740d0dbb344ab32ce3d2f2c;hpb=644c2afa58cfef47dbb1df817399b1da4d353aa0 diff --git a/protocol/validation/vmcontext.go b/protocol/validation/vmcontext.go index 37cbd5cc..10b77d8f 100644 --- a/protocol/validation/vmcontext.go +++ b/protocol/validation/vmcontext.go @@ -25,6 +25,12 @@ func NewTxVMContext(vs *validationState, entry bc.Entry, prog *bc.Program, args ) switch e := entry.(type) { + case *bc.CrossChainInput: + a1 := e.Value.AssetId.Bytes() + assetID = &a1 + amount = &e.Value.Amount + destPos = &e.WitnessDestination.Position + case *bc.Spend: switch spentOutput := tx.Entries[*e.SpentOutputId].(type) { case *bc.IntraChainOutput: