github.com/MetalBlockchain/metalgo@v1.11.9/vms/avm/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 avm
     5  
     6  import (
     7  	"github.com/MetalBlockchain/metalgo/utils/logging"
     8  	"github.com/MetalBlockchain/metalgo/vms"
     9  	"github.com/MetalBlockchain/metalgo/vms/avm/config"
    10  )
    11  
    12  var _ vms.Factory = (*Factory)(nil)
    13  
    14  type Factory struct {
    15  	config.Config
    16  }
    17  
    18  func (f *Factory) New(logging.Logger) (interface{}, error) {
    19  	return &VM{Config: f.Config}, nil
    20  }