Lesson 12: Testing error Property '_mint' does not exist
| Typescript
#899
Unanswered
sanjayojha
asked this question in
Q&A
Replies: 3 comments 7 replies
-
Do you get the contract instance of |
Beta Was this translation helpful? Give feedback.
5 replies
-
Look like all the methods with modifier |
Beta Was this translation helpful? Give feedback.
1 reply
-
It looks like your trying to call an internal function externally and its not visible. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While writing test for
ourToken-unit.test.ts
. I am getting following error for the testing mint function. Note I am usingTypeScript
and the typescript repo does not have all the test covered as the main repo. I am using main repo test to create my typescript version.The test block causing error is.
OurToken.sol
ERC20.sol
_mint function
All other function of ERC20.sol is available in our test but the above
_mint
function is not. What could be the reason?@PatrickAlphaC
Beta Was this translation helpful? Give feedback.
All reactions