github.com/MetalBlockchain/subnet-evm@v0.4.9/plugin/evm/factory.go (about) 1 // (c) 2019-2020, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package evm 5 6 import ( 7 "github.com/MetalBlockchain/metalgo/ids" 8 "github.com/MetalBlockchain/metalgo/snow" 9 "github.com/MetalBlockchain/metalgo/vms" 10 ) 11 12 var ( 13 // ID this VM should be referenced by 14 ID = ids.ID{'s', 'u', 'b', 'n', 'e', 't', 'e', 'v', 'm'} 15 16 _ vms.Factory = &Factory{} 17 ) 18 19 type Factory struct{} 20 21 func (f *Factory) New(*snow.Context) (interface{}, error) { 22 return &VM{}, nil 23 }