question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Token Sale Verification: TypeError: Cannot read property 'Script' of undefined

See original GitHub issue

We 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mhugginscommented, Feb 11, 2018

@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.

1reaction
dvdschwrtz-zzcommented, Feb 2, 2018

There is no issues or todos but I will try and be helpful with detailed information if there is more work to do

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read properties of undefined (reading 'token')
when i use localStorage i have this error : Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'token').
Read more >
Uncaught TypeError : Cannot read properties of undefined
Looking for ways to handle Uncaught TypeError: Cannot read property of undefined in JavaScript? This guide will help you to catch errors.
Read more >
cannot read properties of undefined (reading 'authorization')
This is the error message I get from my redux-store: Cannot read properties of undefined (reading 'getConfigs')" . And the request is being...
Read more >
[Vue 3 & Vite 2] Uncaught (in promise) TypeError: Cannot read ...
I am not using GitHub - auth0/auth0-vue: Auth0 authentication SDK for ... Cannot read properties of undefined (reading 'isAuthenticated').
Read more >
TypeError: Cannot read properties of undefined (reading 'call')
Is your wallet on the right chain/network for your local dev chain? And check all the options/params you're using for calling tokenURI ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found