mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
* import new versions of the zion contracts * bootstrap zion authz * define interface for space manager contract * instantiate spacemanager interface * load goerli and localhost * embed json * remove zion interface. Use contracts directly * split user identifiter into address and chain id * isAllowed in routing.go * remove permission.go Co-authored-by: Tak Wai Wong <tak@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
|
|
}
|