dendrite/zion/util_web3.go
Tak Wai Wong 982ce71aad fix dendrite to interact with v1 / v2 contracts (#1155)
dendrite uses commandline flag v1 or v2 to choose the smart contracts for the isEntitled check
2022-12-29 15:37:03 -08:00

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
}