-
Notifications
You must be signed in to change notification settings - Fork 162
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] Solidity type alias yields unresolved custom type:
#744
Comments
yeah this looks like an issue with type aliases {
"name": "delegatedShares",
"type": "uint256[]",
"internalType": "DelegatedShares[]"
} |
There's 2 issues here:
|
Thanks for the prompt response. For now, I'm actually not using the functions with the custom types so I'll just redefine interfaces. If I included the types inside of the library contract in which they're defined, would that address (2)? |
Yes I think so, if you were to move the |
Cool, confirming that
Made the contract get imported correctly. Unfortunately, that makes the solidity syntax quite gross, so I'm temporarily going with sed -i '' 's/DelegatedShares/uint256/g' out/DelegationManager.sol/DelegationManager.json which seems to work? :) |
@DaniPopes Any solutions for using the entrypoint.sol contract from the account abstraction lib found here? Importing PackedUserOperation is an issue |
I believe I have a similar issue here when using the
I'm unsure exactly how that became my error yet wanted to log it here. |
Component
sol! macro
What version of Alloy are you on?
v0.8.3
Operating System
macOS (Apple Silicon)
Describe the bug
The following abi
DelegationManager.json
along with the following code
If you prefer to build the contracts yourself:
See
out/DelegationManager.sol/DelegationManager.json
.I'm using a type alias
DelegatedShares
foruint256
.The text was updated successfully, but these errors were encountered: