Skip to content
New issue

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

rpc-types-eth: Add receipt deserialize tests for AnyTransactionReceipt #868

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

moricho
Copy link
Contributor

@moricho moricho commented Jun 11, 2024

Motivation

To ensure that the fields present in the tx receipt for Arbitrum and Optimism are captured correctly

from: #424

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@moricho
Copy link
Contributor Author

moricho commented Jun 11, 2024

@prestwich I am currently working on tests to deserialize Optimism and Arbitrum transaction receipts. What should I set as the RPC URL for these networks? I noticed that Ethereum utilizes Alchemy's API endpoint (https://eth-mainnet.alchemyapi.io/v2/jGiK5vwDfC3F4r0bqukm-W2GqgdrxdSr), is this provided by the Alloy organization?
I set https://opt-mainnet.g.alchemy.com/v2/demo and https://arb-mainnet.g.alchemy.com/v2/demo temporarily.

@moricho moricho marked this pull request as ready for review June 11, 2024 15:35
@moricho moricho changed the title provider: Add receipt deserialize tests for AnyNetwork provider: Add receipt deserialize tests for AnyNetwork Jun 11, 2024
#[ignore]
async fn gets_tx_receipt_opt() {
init_tracing();
let url = "https://opt-mainnet.g.alchemy.com/v2/demo";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want avoid using live rpc providers because this can degrade CI drastically.

for these tests we should use the raw json objects and test deserialization like this.

@moricho moricho changed the title provider: Add receipt deserialize tests for AnyNetwork rpc-types-eth: Add receipt deserialize tests for AnyTransactionReceipt Jun 12, 2024
@mattsse mattsse merged commit eb7d849 into alloy-rs:main Jun 12, 2024
22 checks passed
@moricho moricho deleted the any-network-test branch June 12, 2024 11:14
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
…pt` (alloy-rs#868)

* provider: Add receipt deserialize tests for AnyNetwork

* rpc-type-eth: Add tests to deserialize `AnyTransactionReceipt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants