I am running into a very strange bug while interacting with my OpenZepplin crowdsale.
Here is my repo for context https://github.com/GenusDev/crossfit-coin-backend
Here is what I have working so far:
- Deploy a Crowdsale contract: success
- Deploy a MintableToken: success
- Transfer ownership of MintableToken to Crowdsale: success
- Attempt to buyTokens from front-end app (line 76 of app.js): FAIL...but then,if I run the same buyTokens command once through the Truffle CLI, I can then refresh the page of my front-end app and run the exact same code (line 76 of app.js) and successfully buyTokens.
Its not a timing issue. I have waited several minutes after deployment, and step 4 works from the front-end immediately after running the same command through the CLI. Can anyone offer advice here?