ERC777 Recipient Smart Contract does not work for me (Simple ERC777 token example). It gives an error with
_erc1820.setInterfaceImplementer(address(this), TOKENS_RECIPIENT_INTERFACE_HASH, address(this));
The error is “Error: The execution failed due to an exception.”
1 Like
Hi @CrackerHax,
Would you mind providing a bit more information on what circumstances the error occurred?
Hi @CrackerHax,
Just following up to see if you had resolved or if you could provide more information?
There is no more information, that is all it gave me. Compiling with 5.8 if that helps any.
1 Like
Hi @CrackerHax,
Was this using OpenZeppelin CLI and OpenZeppelin Test Environment or Truffle?
Was this a fork of https://github.com/abcoathup/Simple777Token or creating your own project using the examples?
What operating system, node and npm version are you using?
Any other information you can share so that I can attempt to reproduce?
Yes using npx oz compile and npx oz create. The code I posted is in the initializer function, so it happens when I try to initialize the contract. If I remove that line I get no error. My point is I have no idea what the error was because “Error: The execution failed due to an exception.” is 100% non-informative. I used most of the code in your example (I say most because I changed the “do stuff” to actually do stuff).
1 Like
Hi @CrackerHax,
Are you able to share an example that fails so I can reproduce?
Assuming you want an upgradeable version, did you change the constructors to initializers and import OpenZeppelin Contracts Ethereum Package rather than OpenZeppelin Contracts (Using Upgradeable Packages)?
Lol yep. I’m not a noob. And nope no example. I had to get rid of the code because it was holding up development.
1 Like
Hi @CrackerHax,
Sorry I wasn’t able to reproduce. Let me know if you run into the issue again.
Did you honestly even try?
1 Like
Yes!! I had a play with my repo to see if I could reproduce the error.
It would be nice to be able to debug an actual error rather than “Error: The execution failed due to an exception.”
1 Like