Skip to content

Commit 452a8b9

Browse files
fubuloubukclowes
authored andcommitted
Apply suggestions from code review
- Build HTTP Headers so users can use their own keys
1 parent c04b584 commit 452a8b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web3/auto/infura/goerli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
from .endpoints import (
1010
INFURA_GOERLI_DOMAIN,
11+
build_http_headers,
1112
build_infura_url,
1213
)
1314

15+
_headers = build_http_headers()
1416
_infura_url = build_infura_url(INFURA_GOERLI_DOMAIN)
1517

16-
w3 = Web3(load_provider_from_uri(_infura_url))
18+
w3 = Web3(load_provider_from_uri(_infura_url, _headers))
1719
w3.middleware_onion.inject(geth_poa_middleware, layer=0)

0 commit comments

Comments
 (0)