We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L1BlockInfo
Currently, we only have one test validating L1BlockInfo for a remote transaction in crates/edr_optimism/tests/rpc.rs:
crates/edr_optimism/tests/rpc.rs
#[tokio::test(flavor = "multi_thread")] async fn receipt_with_l1_block_info() -> anyhow::Result<()> { const TRANSACTION_HASH: B256 = b256!("f0b04a1c6f61b2818ac2c62ed0c3fc22cd7ebd2f51161759714f75dd27fa7caa"); let url = get_alchemy_url().replace("eth-", "opt-"); let rpc_client = EthRpcClient::<OptimismChainSpec>::new(&url, CACHE_DIR.into(), None)?; let receipt = rpc_client .get_transaction_receipt(TRANSACTION_HASH) .await? .expect("Receipt must exist"); assert_eq!(receipt.l1_block_info.l1_gas_price, Some(0x5f3a77dd6)); assert_eq!(receipt.l1_block_info.l1_gas_used, Some(0x640)); assert_eq!(receipt.l1_block_info.l1_fee, Some(0x1c3441e5e02)); assert_eq!(receipt.l1_block_info.l1_fee_scalar, None); assert_eq!(receipt.l1_block_info.l1_base_fee_scalar, Some(0x146b)); assert_eq!(receipt.l1_block_info.l1_blob_base_fee, Some(0x3f5694c1f)); assert_eq!(receipt.l1_block_info.l1_blob_base_fee_scalar, Some(0xf79c5)); Ok(()) }
We should add more tests to validate:
A list of Optimism-specific hardforks can be found here.
The text was updated successfully, but these errors were encountered:
I've added more information to the issue description that should provide you with a starting point to investigate the issue.
Sorry, something went wrong.
No branches or pull requests
Currently, we only have one test validating
L1BlockInfo
for a remote transaction incrates/edr_optimism/tests/rpc.rs
:We should add more tests to validate:
A list of Optimism-specific hardforks can be found here.
The text was updated successfully, but these errors were encountered: