question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unsuported TypeName node type: FunctionTypeName at serializeTypeName (node_modules/@openzeppelin/upgrades-core/src/utils/function.ts:43:13)

See original GitHub issue

Compiling 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:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
Amxxcommented, Aug 6, 2021

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!

2reactions
frangiocommented, Aug 6, 2021

Should be fixed on @openzeppelin/upgrades-core@1.8.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found