mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-17 02:53:11 -06:00
Pulls in upstream latest changes from [dendrite-fork ](https://github.com/HereNotThere/dendrite)to subtree at servers/dendrite here. Co-authored-by: Tak Wai Wong <64229756+tak-hntlabs@users.noreply.github.com> Co-authored-by: Tak Wai Wong <tak@hntlabs.com> Co-authored-by: John Terzis <john@hntlabs.com>
15 lines
241 B
Go
15 lines
241 B
Go
package zion
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/ethclient"
|
|
)
|
|
|
|
func GetEthClient(networkUrl string) (*ethclient.Client, error) {
|
|
client, err := ethclient.Dial(networkUrl)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return client, nil
|
|
}
|