diff --git a/giga/executor/lib/evmlib.go b/giga/executor/lib/evmlib.go index d8245e4564..ac359620a5 100644 --- a/giga/executor/lib/evmlib.go +++ b/giga/executor/lib/evmlib.go @@ -2,8 +2,6 @@ package lib import ( "fmt" - "path/filepath" - "runtime" "github.com/ethereum/evmc/v12/bindings/go/evmc" ) @@ -13,15 +11,9 @@ import ( // InitEvmoneVM initializes the EVMC VM by loading the platform-specific evmone library. // It does not verify that the loaded version is compatible with evmc version. func InitEvmoneVM() (*evmc.VM, error) { - _, path, _, ok := runtime.Caller(0) - if !ok { - return nil, fmt.Errorf("failed to get caller information") - } - - libPath := filepath.Join(filepath.Dir(path), libName) - vm, err := evmc.Load(libPath) + vm, err := evmc.Load(libName) if err != nil { - return nil, fmt.Errorf("evmc.Load(%q): %w", libPath, err) + return nil, fmt.Errorf("evmc.Load(%q): %w", libName, err) } return vm, nil