)
if len(oldIss.Nonce) > 0 {
- tr := bc.NewTimeRange(tx.MinTime, tx.MaxTime)
- trID := addEntry(tr)
assetID := oldIss.AssetID()
builder := vmutil.NewBuilder()
builder.AddOp(vm.OP_ASSET).AddData(assetID.Bytes()).AddOp(vm.OP_EQUAL)
prog, _ := builder.Build() // error is impossible
- nonce := bc.NewNonce(&bc.Program{VmVersion: 1, Code: prog}, &trID)
+ nonce := bc.NewNonce(&bc.Program{VmVersion: 1, Code: prog})
anchorID = addEntry(nonce)
setAnchored = nonce.SetAnchored
} else if firstSpend != nil {