mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
dendrite uses commandline flag v1 or v2 to choose the smart contracts for the isEntitled check
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
|
|
}
|