github.com/ava-labs/avalanchego@v1.11.11/vms/example/xsvm/factory.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package xsvm
     5  
     6  import (
     7  	"github.com/ava-labs/avalanchego/utils/logging"
     8  	"github.com/ava-labs/avalanchego/vms"
     9  )
    10  
    11  var _ vms.Factory = (*Factory)(nil)
    12  
    13  type Factory struct{}
    14  
    15  func (*Factory) New(logging.Logger) (interface{}, error) {
    16  	return &VM{}, nil
    17  }