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

type mismatch in example #4

Open
ub-tech opened this issue Jun 10, 2024 · 1 comment
Open

type mismatch in example #4

ub-tech opened this issue Jun 10, 2024 · 1 comment

Comments

@ub-tech
Copy link

ub-tech commented Jun 10, 2024

Hi - I tried to implement the example from the ReadMe but continue to receive this error. Any thoughts/help would be much appreciated. Thank you.

let proof = tree.create_proof(&B256::from(U256::from(i))).unwrap();
| ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected FixedBytes<32>, found a different FixedBytes<32>

mismatched types
FixedBytes<32> and FixedBytes<32> have similar names, but are actually distinct types
perhaps two different versions of crate alloy_primitives are being used?

@rkdud007
Copy link
Owner

hey first suggest to upgrade to latest version, which is synced with alloy (v0.1.1) -- binded with alloy-primitives(v0.7.6) behind.

I suppose your project's primitive type version and alloy-merkle-tree primitive version was mismatched ( prob it was v0.7.6 vs v0.6.4 conflict -- I had experiment this recently)

so check out for latest version of this library which is v0.6.0 and if u still have issue lmk and share me the Cargo.toml of alloy related dependencies versions.

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

No branches or pull requests

2 participants