Converting ERC20 to ERC777 and errors with: Cannot find module ‘@openzeppelin/test-helpers’

Hi abcoathup,
I unbox the truffle drizzle, and alter the erc20 token to erc777. I have installed openzepplin test helper. But when i deploy the contract, i get error message:

Error: Cannot find module ‘@openzeppelin/test-helpers’
Require stack:

  • /usr/local/lib/node_modules/truffle/node_modules/original-require/index.js
  • /usr/local/lib/node_modules/truffle/build/cli.bundled.js

this is my project… i switch the node version from 13 to 12 to 8… but still would not work…
may I know what is the cause of the problem? thanks

1 Like

Hi @stepheniecvc,

openzeppelin-test-helpers is now called @openzeppelin/test-helpers.

To resolve you can uninstall openzeppelin-test-helpers and install @openzeppelin/test-helpers.

You can see this being used in my Simple ERC777 token example

Please ask all the questions that you need.

hi thank you so much… i can deploy the contract now

1 Like