Skip to content

Commit

Permalink
Reuse existing factory function
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertJordan committed Sep 27, 2024
1 parent 6e7730c commit 90c6439
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions go/interpreter/lfvm/lfvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ func NewInterpreter(Config) (*lfvm, error) {
// Registers the long-form EVM as a possible interpreter implementation.
func init() {
tosca.MustRegisterInterpreterFactory("lfvm", func(any) (tosca.Interpreter, error) {
return newVm(config{
ConversionConfig: ConversionConfig{
WithSuperInstructions: false,
},
WithShaCache: true,
})
return NewInterpreter(Config{})
})
}

Expand Down

0 comments on commit 90c6439

Please sign in to comment.