diff --git a/cmd/geth/js.go b/cmd/geth/js.go index f99051a1e9..342a80bd22 100644 --- a/cmd/geth/js.go +++ b/cmd/geth/js.go @@ -141,7 +141,7 @@ var net = web3.net; utils.Fatalf("Error setting namespaces: %v", err) } - js.re.Eval(globalRegistrar + "registrar = new GlobalRegistrar(\"" + globalRegistrarAddr + "\");") + js.re.Eval(globalRegistrar + "registrar = GlobalRegistrar.at(\"" + globalRegistrarAddr + "\");") } var ds, _ = docserver.New("/")