website: rectifed RPC connection docs (#27215)

* website: rectified RPC connect docs

* Update docs/developers/dapp-developer/native-bindings.md

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
Manas Nagaraj 2023-05-04 13:59:43 +05:30 committed by GitHub
parent 25faad8fe9
commit 41ecd256ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -220,7 +220,7 @@ const key = `<<json object from keystore>>`
func main() { func main() {
// Create an IPC based RPC connection to a remote node and an authorized transactor // Create an IPC based RPC connection to a remote node and an authorized transactor
conn, err := rpc.NewIPCClient("/home/go-ethereum/goerli/geth.ipc") conn, err := ethclient.Dial("/home/go-ethereum/goerli/geth.ipc")
if err != nil { if err != nil {
log.Fatalf("Failed to connect to the Ethereum client: %v", err) log.Fatalf("Failed to connect to the Ethereum client: %v", err)
} }