diff --git a/bccsp/factory/pluginfactory.go b/bccsp/factory/pluginfactory.go index 3870bbcd097..eda8ebe3ee6 100644 --- a/bccsp/factory/pluginfactory.go +++ b/bccsp/factory/pluginfactory.go @@ -65,10 +65,9 @@ func (f *PluginFactory) Get(config *FactoryOpts) (bccsp.BCCSP, error) { } // check to make sure symbol New meets the required function signature - new, ok := sym.(func(config map[string]interface{}) (bccsp.BCCSP, error)) + newBccsp, ok := sym.(func(config map[string]interface{}) (bccsp.BCCSP, error)) if !ok { return nil, fmt.Errorf("Plugin does not implement the required function signature for 'New'") } - - return new(config.PluginOpts.Config) + return newBccsp(config.PluginOpts.Config) }