Token Sale Verification: TypeError: Cannot read property 'Script' of undefined
See original GitHub issueWe are doing some final testing of our ICO smart contract on the TestNet, and it looks like we’ve identified a bug with the “Participate in a token sale” tool. Submissions work just fine when verification is disabled, but they are failing 100% of the time in our tests when verification is enabled. I’m confident the issue isn’t that the actual verification is failing, as we can successfully execute and pass verification by submitting the same transactions in neo-python. The issue seems to be isolated to Neon wallet.
I got a local dev copy of neon-wallet running and did some debugging to try to figure out what is going on and tracked it to this line:
https://github.com/CityOfZion/neon-wallet/blob/master/app/modules/sale.js#L112
I was able to identify the error by including the error.stack
in the displayed message. Here’s the beginning of the (not-so-helpful & incomplete) stack:
TypeError: Cannot read property 'Script' of undefined
at A (http://localhost:3000/dist/bundle.js:76367:130484)
at http://localhost:3000/dist/bundle.js:76367:130125
at ...
If you want to try it out, here’s the script hash on TestNet that is reproducing the issue: ae01c7a5323a4ff6c721fbde741dbd88e844c147
I have very little experience with react, or else I probably could have provided more useful details.
We’re hoping to get this issue resolved as soon as possible, so please let me know if there’s anything I can do to help!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:24 (11 by maintainers)
Top GitHub Comments
@anfn101 @brianlenz I’m going to reopen this one in particular. Brian’s been active in Slack/Discord and has a strong grasp on the issues around this.
There is no issues or todos but I will try and be helpful with detailed information if there is more work to do