You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When attempting to use the sol! macro to generate a contract from an ABI JSON file, the macro panics with the error: "function has no name: Function { attrs: [], kind: Constructor, name: None, arguments: [], attributes: FunctionAttributes({}), returns: None }".
Steps to Reproduce
Here is a minimal code example that reproduces the issue:
use alloy_sol_types::sol;sol!(Uniswap, "src/abi/uniswap.json");
In this case, the JSON ABI file is the uniswap v3 pool abi copied from Etherscan.
The text was updated successfully, but these errors were encountered:
Component
sol! macro
What version of Alloy are you on?
alloy-sol-types = {git = "https://github.com/alloy-rs/core", package = "alloy-sol-types", rev = "80e7894", features = ["json"]}
Operating System
macOS (Apple Silicon)
Describe the bug
Description
When attempting to use the
sol!
macro to generate a contract from an ABI JSON file, the macro panics with the error: "function has no name: Function { attrs: [], kind: Constructor, name: None, arguments: [], attributes: FunctionAttributes({}), returns: None }"
.Steps to Reproduce
Here is a minimal code example that reproduces the issue:
In this case, the JSON ABI file is the uniswap v3 pool abi copied from Etherscan.
The text was updated successfully, but these errors were encountered: