Hide Infura API key from docs (#863)

This commit is contained in:
MistApproach 2022-02-04 15:58:53 +01:00 committed by GitHub
parent 0526e920eb
commit 5005a3621a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ use std::convert::TryFrom;
# async fn foo() -> Result<(), Box<dyn std::error::Error>> {
let provider = Provider::<Http>::try_from(
"https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27"
"https://mainnet.infura.io/v3/YOUR_API_KEY"
)?;
let block = provider.get_block(100u64).await?;
@ -53,7 +53,7 @@ method on the provider.
# use std::convert::TryFrom;
# async fn foo() -> Result<(), Box<dyn std::error::Error>> {
# let provider = Provider::<Http>::try_from(
# "https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27"
# "https://mainnet.infura.io/v3/YOUR_API_KEY"
# )?;
// Resolve ENS name to Address
let name = "vitalik.eth";