Closed tcoratger closed 3 months ago
@DaniPopes could this be an issue with outdated sol(rpc)
expansion?
This is fixed on main.
As noted in the documentation, sol(rpc)
and alloy-rs/alloy
/alloy-contract
are incomplete and unstable. You have to patch all alloy-core to latest git: https://github.com/alloy-rs/alloy/blob/f9c90dececc991486eb483f3f9398bb2714fb8a0/Cargo.toml#L109-L117
Component
contract
What version of Alloy are you on?
0.6.4
Operating System
None
Describe the bug
I'm trying two different use cases using the
sol!
macro:ethers
structure which wasin order to call the function in the following ABI:
For that I use following alloy approach
resulting in the following error during
cargo build
Log
via itstopics
anddata
. For that, I use the following approach:and then calling with something like
Resulting in the same error:
Is there something I didn't do right or is there something I need to fix in the repo? I did not find a perfectly equivalent example in the repo for the macro with the ABI but it seems to me that the second use case takes exactly the example found in the unit tests.