Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
- Build HTTP Headers so users can use their own keys
  • Loading branch information
fubuloubu authored and kclowes committed Apr 8, 2019
1 parent c04b584 commit 452a8b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web3/auto/infura/goerli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@

from .endpoints import (
INFURA_GOERLI_DOMAIN,
build_http_headers,
build_infura_url,
)

_headers = build_http_headers()
_infura_url = build_infura_url(INFURA_GOERLI_DOMAIN)

w3 = Web3(load_provider_from_uri(_infura_url))
w3 = Web3(load_provider_from_uri(_infura_url, _headers))
w3.middleware_onion.inject(geth_poa_middleware, layer=0)

0 comments on commit 452a8b9

Please sign in to comment.