From 3edea10f6c1c3bc6b7c395ba586291c7115b7d43 Mon Sep 17 00:00:00 2001 From: Matus Kysel Date: Thu, 21 Dec 2023 09:09:14 +0100 Subject: [PATCH] faucet: resolved reviews --- cmd/faucet/faucet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index 609303be51..2b1c08b8ac 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -169,7 +169,7 @@ func main() { log.Crit("Failed to unlock faucet signer account", "err", err) } // Assemble and start the faucet light service - faucet, err := newFaucet(genesis, wsEndpoint, ks, website.Bytes(), bep2eInfos) + faucet, err := newFaucet(genesis, *wsEndpoint, ks, website.Bytes(), bep2eInfos) if err != nil { log.Crit("Failed to start faucet", "err", err) } @@ -225,12 +225,12 @@ type wsConn struct { wlock sync.Mutex } -func newFaucet(genesis *core.Genesis, url *string, ks *keystore.KeyStore, index []byte, bep2eInfos map[string]bep2eInfo) (*faucet, error) { +func newFaucet(genesis *core.Genesis, url string, ks *keystore.KeyStore, index []byte, bep2eInfos map[string]bep2eInfo) (*faucet, error) { bep2eAbi, err := abi.JSON(strings.NewReader(bep2eAbiJson)) if err != nil { return nil, err } - client, err := ethclient.Dial(*url) + client, err := ethclient.Dial(url) if err != nil { return nil, err }