Error: Unsuported TypeName node type: FunctionTypeName at serializeTypeName (node_modules/@openzeppelin/upgrades-core/src/utils/function.ts:43:13)
See original GitHub issueCompiling a big project and this error came up, can’t trim down the error but i think it relates to me using function type in a library:
function updateVault(
Vault.Data memory vaultData,
address TAddr,
function(
address,
uint256,
uint256,
uint256,
uint256,
uint256
) external onVaultUpdate
) internal {
}
This happens on 0.8.4 solidity and "@openzeppelin/hardhat-upgrades": "^1.9.0"
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So I see you have some external functions with functions arguments. This is something we clearly didn’t expect. It is not an issue with internal functions, but it is with external functions as we do save signatures to future-proof the manifest a bit more.
Hopefully, the fix is very simple (see #407). I’ll double-check that with @frangio and we should have a new version released soon!
Should be fixed on
@openzeppelin/upgrades-core@1.8.1
.