Closed ItsNickBarry closed 4 months ago
It seems like the $
prefix works if compilation has already been run and the most recent compilation used a different prefix.
hardhat clean
$
prefix => error_
prefix => okay$
prefix => okay$
prefix => error_
prefix => okay$
prefix => okayI wasn't able to reproduce this. Could you submit a repository with reproduction?
Could be an OS issue? Using Ubuntu 20.04. Node 16.13.1.
Can reproduce in this repository: https://github.com/ItsNickBarry/hardhat-waffle-template
Add this contract:
contract Test {
function fnExternal() external pure returns (uint256) {
return fnInternal();
}
function fnInternal() internal pure returns (uint256) {
return 12;
}
}
Install with yarn: yarn add --dev hardhat-exposed
Add import to HH config.
Thanks. It's not the prefix. There's something else going wrong. I'll open an issue and see if the TypeChain team can identify the problem.
Any updates on this?
These plugins still don't work together. hardhat-exposed seems to do something that is unexpected for Typechain and causes it to fail. I don't understand Typechain internals in order to suggest a fix.
Closing because Typechain is deprecated.
I am getting this error when using this plugin in combination with
@hardhat/typechain
:It's fixed by setting a different
prefix
in theexposed
config, such asx
or_
.This may be a typechain issue (in fact, the stack trace points to typechain files), but I couldn't reproduce with typechain alone by adding the
$
character to contract names. Need to better understand the context before reporting to them.