-
Notifications
You must be signed in to change notification settings - Fork 795
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
having a sepolia provider makes total sense.
I think switching testing to sepolia, is probably also the right move for basic contract testing.
.github/workflows/ci.yml
Outdated
@@ -12,7 +12,7 @@ name: Tests | |||
env: | |||
ETHERSCAN_API_KEY_ETHEREUM: I5BXNZYP5GEDWFINGVEZKYIVU2695NPQZB | |||
ETHERSCAN_API_KEY_CELO: B13XSMUT6Q3Q4WZ5DNQR8RXDBA2KNTMT4M | |||
GOERLI_PRIVATE_KEY: "fa4a1a79e869a96fcb42727f75e3232d6865a82ea675bb95de967a7fe6a773b2" | |||
SEPOLIA_PRIVATE_KEY: "fa4a1a79e869a96fcb42727f75e3232d6865a82ea675bb95de967a7fe6a773b2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep goerli as well
we could also switch to gh secrets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean we shouldn't change to sepolia at all, or just keep the env var name as goerli?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep both
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
problem is that tests are flaky with goerli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry to be nitpicky but let's remove all unrelated changes except the addition of the Sepolia provider :D
.github/workflows/ci.yml
Outdated
@@ -1,288 +1,283 @@ | |||
on: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
giga nit but pls configure your editor to not change the formatting on these files :D or let's do it in a separate PR intentionally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk why it formats on search and replace, that was unintentional
ethers-providers/src/lib.rs
Outdated
@@ -756,16 +758,14 @@ pub mod test_provider { | |||
} | |||
|
|||
impl TestProvider { | |||
pub fn new(keys: &'static [&'static str], network: &str) -> Self { | |||
Self { keys: Mutex::new(keys.iter().cycle()), network: network.to_owned() } | |||
pub fn new(network: impl Into<String>) -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd like to keep this around so a consumer can specify providers w/ other infura keys in the future
Motivation
goerli moment
Solution
add sepolia to test provider and use it
fauceted from https://web.getlaika.app/faucets
PR Checklist