minor cleanup to prom files

This commit is contained in:
Ian Norden
2020-10-27 14:18:59 -05:00
parent 128e30b3a8
commit e561fd3178
8 changed files with 85 additions and 16 deletions
+5 -1
View File
@@ -55,10 +55,14 @@ type PublicEthAPI struct {
// NewPublicEthAPI creates a new PublicEthAPI with the provided underlying Backend
func NewPublicEthAPI(b *Backend, client *rpc.Client) *PublicEthAPI {
var ethClient *ethclient.Client
if client != nil {
ethClient = ethclient.NewClient(client)
}
return &PublicEthAPI{
B: b,
rpc: client,
ethClient: ethclient.NewClient(client),
ethClient: ethClient,
}
}