How would I access private variables (like a Counter) if I wanted to use them in mocha/chai tests
ERC721PresetMinterPauserAutoId uses also predefined ids for token, but the ids are auto generated.
Would I use a MockERC721PresetMinterPauserAutoId and expose also the private variables with the internal function?
Environment
“@openzeppelin/contracts-upgradeable”: “^4.1.0”,
“truffle”: “^5.3.1”
Details
contract ERC721PresetMinterPauserAutoIdUpgradeable {
...
CountersUpgradeable.Counter private _tokenIdTracker;
...
}
Code to reproduce