Integrating ERC20 Token with the Game Discussion

Welcome to the discussion about this section. Here you can ask questions or post feedback about this specific section.

keep getting a
TypeError: contract is undefined
error when I go to my clients console. I cant mint tokens due to this. When run eth.js with node it runs normally. But when I load the server and game ends, I cant mint tokens. Are there a set of common potential answers to this?

Looks like contract is undefined in your javascript. Can you share you code so me and @ivan can have a look?