Skip to content
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

Unable to deploy FiatTokenV2_2 contract becouse we have made visibility of isValidSignatureNow function external in SignatureChecker.sol library #452

Open
upendra-eth opened this issue Apr 26, 2024 · 1 comment

Comments

@upendra-eth
Copy link

upendra-eth commented Apr 26, 2024

When i am trying to deploy FiatTokenV2_2 contract using hardhat i am getting error.

The contract FiatTokenV2_2 is missing links for the following libraries:
* contracts/util/SignatureChecker.sol:SignatureChecker

This is becouse we are using external function li library contract. When i am using internal function visibilty its working file

@manavnotnani
Copy link

This is because when you make library function internal/private it then limits to your code base only. But when you make it external that means any one from outside can access it. Therefore it deploys that library separately.
I hope I answered your question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants