-
Notifications
You must be signed in to change notification settings - Fork 794
Conversation
@gakonst ready for review 🙏 Remaining failing actions:
|
|
||
# Installs geth from https://geth.ethereum.org/downloads | ||
install_geth() { | ||
case "$PLATFORM" in |
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.
is it worth caching and then shortcutting if tool is already installed?
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.
hmm, would need to check version in case they differ, but we're only downloading binary so it's not that important imo
use ethers_core::abi::{EventParam, Hash, ParamType}; | ||
use proc_macro2::Literal; | ||
|
||
/// Expands a 256-bit `Hash` into a literal representation that can be used with |
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.
is this going somewhere? is dead code?
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 couldn't understand it; it's a local function in the test module, so it's not used anywhere else and had a test.. it doesn't really do anything
assert_eq!(Source::parse(abs).unwrap(), exp); | ||
assert_eq!(Source::parse(abs_url).unwrap(), exp); | ||
// Skip checking paths on Windows | ||
#[cfg(not(windows))] |
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.
should this be re-written to use std::path instead of strings?
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.
Realized that the diff was just the weird windows canonicalize thing, so dunce::canonicalize fixes that
@@ -1,951 +1,927 @@ | |||
#![allow(unused)] | |||
use crate::common::*; |
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.
this is a big diff. I'm guessing git is over-reporting a file rearrangement? can you summarize changes?
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.
It's 99% indentation, it contained only one module so I extracted that
#[tokio::test] | ||
async fn contract_call_into_future_is_send() { | ||
abigen!(DsProxyFactory, "ethers-middleware/contracts/DsProxyFactory.json"); | ||
fn _contract_call_into_future_is_send() { |
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.
now unused?
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.
Just a compilation test
// geth uses stderr for its logs | ||
cmd.stderr(Stdio::piped()); | ||
|
||
let mut unused_ports = unused_ports::<3>().into_iter(); |
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.
this is good
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.
This all looks great to me. Would love if we can double click on why any of the new tests are failing, and if we ultimately think it's OK I'm down to track in a new issue and @DaniPopes can handle the next steps?
chmod +x "solc$EXT" | ||
} | ||
|
||
main |
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.
nice!
@@ -1,14 +0,0 @@ | |||
name: Security audit |
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 think we want to keep this. Any reason not to?
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.
see deps.yml file, changed to use the one reth uses
|
||
#[test] | ||
#[rustfmt::skip] | ||
fn expand_hash_value() { |
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.
was this unused?
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.
yes #2189 (comment)
@@ -95,6 +95,7 @@ pub enum Eip2930RequestError { | |||
pub struct Eip2930TransactionRequest { | |||
#[serde(flatten)] | |||
pub tx: TransactionRequest, | |||
#[serde(rename = "accessList")] |
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.
Yikes. @prestwich lol how was this never caught before, I guess nobody ever used direct 2930, and we do camelCase all in 1559 for access lists
@@ -427,7 +433,7 @@ impl Geth { | |||
serde_json::to_writer_pretty(&mut file, &genesis) | |||
.expect("could not write genesis to file"); | |||
|
|||
let mut init_cmd = Command::new(GETH); | |||
let mut init_cmd = Command::new(bin_path); |
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.
good catch
@@ -0,0 +1,76 @@ | |||
//! Etherscan integration tests |
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.
Love that we're leaning on thetests/it/main.rs
pattern to save time compiling
use ethers_signers::{LocalWallet, Signer}; | ||
|
||
#[tokio::test] | ||
#[ignore] |
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.
cc @prestwich who's worked on the gas escalators before.
What is the current issue you're facing?
abigen!(SimpleStorage, "../tests/testdata/SimpleStorage.json"); | ||
|
||
#[tokio::test] | ||
#[ignore] |
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.
https://github.com/dapphub/ds-proxy we should understand why it's failing
- name: live tests | ||
run: cargo test -p ethers --test live --all-features | ||
|
||
# TODO: [#2191](https://github.com/gakonst/ethers-rs/issues/2191) |
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.
sgtm - we can do as followup
OK. send it |
🫡 |
Motivation
Closes #1991
Closes #1978
Solution
TODO
Not planned for this PR (#2191):
PR Checklist