perun-network / perun-eth-payment

Simplified payment channel API of go-perun.
Apache License 2.0
5 stars 1 forks source link

Create constructor that reuses an existing `ethclient` #10

Open sebastianst opened 3 years ago

sebastianst commented 3 years ago

It may be worth adding a constructor that can be passed an ethclient.Client in case an application using this wrapper already creates and uses an ethclient.

ggwpez commented 3 years ago

We could definitely do this easily with a new ClientOption á la WithEthClient(client) analogous to WithDialer and WithListener.