Agost Biro

Results 30 issues of Agost Biro

Follow up from: https://github.com/NomicFoundation/hardhat/pull/4294#discussion_r1293528783 **Definition of done** RPC client and caching related files are moved out into a `edr_rpc_client` crate from `rethnet_eth`.

We currently don't accept EIP-1898 block specs in `eth_getTransactionByBlockNumberAndIndex` in order to match Hardhat behavior. We need to determine if adding support for EIP-1898 block specs in `eth_getTransactionByBlockNumberAndIndex` would be...

**Problem** While resolving a write key for the RPC cache we sometimes need to fetch the latest block number. This is now amortized in https://github.com/NomicFoundation/hardhat/pull/4360 by caching the latest block...

We currently accept `U256` in `eth_getTransactionByBlockNumberAndIndex` in order to match Hardhat returning `null` for out of bound indexes. We need to determine if we could make it an error to...

**Problem** The way `debug_trace` is implemented currently is not ideal and doesn't have support for gas cost of calls and creates. The problem is that the current implementation just adopts...

**Problem** The default cache directory is currently relative to the current directory. This clutters the user's machine and it leads to fewer cache hits. **Solution** Use a single cache directory...

Alchemy guarantees a certain throughput, but allows higher if they have free capacity. This means that it doesn’t make sense to proactively apply throttling, instead it needs to be applied...

The release workflow was implemented in https://github.com/NomicFoundation/hardhat/pull/4415 based on the NAPI CLI generated project scaffolding. The result has a lot of code duplication and thus is prone to error. Another...

[`mine_block`](https://github.com/NomicFoundation/hardhat/blob/b267db8d1f2acb6f5611e82b74b9d9e555024c84/crates/edr_evm/src/miner.rs#L132) has quadratic complexity in the number of callers as it reruns the comparator function on all transactions for each transaction: https://github.com/NomicFoundation/hardhat/blob/b267db8d1f2acb6f5611e82b74b9d9e555024c84/crates/edr_evm/src/mempool.rs#L54-L59 Note that we're doing order preserving removal from...

There are currently workarounds in the snapshot validation for the ~`openzeppelin` and~ `neptune-mutual` scenarios as comparing failing RPC call indices for these two scenarios is unreliable. We think this is...