Closed Aviksaikat closed 3 weeks ago
This is not the proper way to load solidity files per alloy=0.5.4.
alloy=0.5.4
sol!( Counter, "artifacts/Counter.sol" );
names are not allowed outside of JSON ABI
It should be
sol!( "artifacts/Counter.sol" );
The following snippet worked perfectly
sol!( // IUniswapV2Factory, "contracts/IUniswapV2Factory.sol" );
Thanks @Aviksaikat!
Related: https://github.com/alloy-rs/core/issues/636#issuecomment-2134698618 / https://github.com/alloy-rs/core/pull/647/files
Summary
This is not the proper way to load solidity files per
alloy=0.5.4
.Problem
It should be
Example
The following snippet worked perfectly