mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 16:13:10 -06:00
* add config yaml for enable_auth * zion_space_manager_localhost.go * Placeholders for authorization * rename func and type * re-run go mod tidy Co-authored-by: Tak Wai Wong <tak@hntlabs.com>
15 lines
251 B
Go
15 lines
251 B
Go
package web3
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/ethclient"
|
|
)
|
|
|
|
func GetEthClient(web3ProviderUrl string) (*ethclient.Client, error) {
|
|
client, err := ethclient.Dial(web3ProviderUrl)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return client, nil
|
|
}
|