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

[Bug] Cannot fetch blocks with BlockTransactionsKind::Full on base network #1716

Closed
Toeplitz opened this issue Nov 30, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@Toeplitz
Copy link

Toeplitz commented Nov 30, 2024

Component

provider, pubsub

What version of Alloy are you on?

0.7.0

Operating System

Linux

Describe the bug

On Base I try to fetch transaction data with this code:
let block = provider.get_block_by_number(block_num, BlockTransactionsKind::Full).await?;
But I get an error:

Error: deserialization error: data did not match any variant of untagged enum BlockTransactions at line 1 column 242358
Caused by:
data did not match any variant of untagged enum BlockTransactions at line 1 column 242358

Using BlockTransactionsKind::Hashes works fine, but then
let tx = provider.get_transaction_by_hash(*hash).await?;
Will cause a similar error.

The same code works fine on the ethereum network. Note that I'm running the base node in snap sync mode, if that can cause problems (I'm not sure):
https://github.com/base-org/node/blob/923f3407cba5b35b0cefca93ef5060e10ba89850/.env.mainnet#L44

@mattsse
Copy link
Member

mattsse commented Nov 30, 2024

closing as dup of #1689

if you use the Ethereum network then this will fail because it doesn't support OP's deposit txs, there's op-alloy OpNetwork or the AnyNetwork

@mattsse mattsse closed this as completed Nov 30, 2024
@mattsse
Copy link
Member

mattsse commented Nov 30, 2024

@DaniPopes DaniPopes closed this as not planned Won't fix, can't repro, duplicate, stale Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants