Closed CocoStarZ closed 1 year ago
Hey @CocoStarZ! Actually that box (https://github.com/bnb-chain/BSC-Truffle-Starter-Box) is not officially maintained by Truffle. Only boxes tagged "official" are maintained by Truffle. I would suggest creating an issue on that repo.
which repo should i use? Also you don't really test the box posted on your official site as an example?
The repo to file an issue on would be https://github.com/bnb-chain/BSC-Truffle-Starter-Box, as linked above.
Yes, the breakage of the box is unfortunate... at present, we only test community-submitted boxes on submission, we don't currently do periodic retests. Sorry!
By the way, although this isn't a Truffle issue per se, it seems to me to be worth saying something about that particular error. That error is one you can get if you compile a contract for one hardfork, but then deploy it using a client that only supports an older hardfork. If you want to know how to deal with the problem yourself before the box is fixed, I would suggest updating your client if possible, and, if not, setting your compilation options to target the older hardfork your client supports.
Hope that's helpful!
Closing this for issue maintenance.
Faced the same issue. Can somebody tell how to fix it?
I have changed the version and it works for me
I have changed the version and it works for me
am thankful ... its works
Issue
Got error when deploying the contract. Error: Deployment Failed
"SimpleStorage" hit an invalid opcode while deploying. Try:
Adding reason strings to your assert statements.
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:330:1 Truffle v5.7.4 (core: 5.7.4) Node v18.16.0
Steps to Reproduce
truffle compile --config=truffle-config.bsc.js -all npm run migrate:bsc --network bscTestnet
Expected Behavior
Contract deployed.
Actual Results
Error prompts