Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no data in the game UI panel after connect wallet #1

Open
187383327 opened this issue Aug 20, 2021 · 1 comment
Open

no data in the game UI panel after connect wallet #1

187383327 opened this issue Aug 20, 2021 · 1 comment

Comments

@187383327
Copy link

follow all of steps,while connect wallet, no data in the game UI panel and error appear in console.
errors as follow:
index.js:298 Uncaught (in promise) Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.
at ABICoder.push../node_modules/web3-eth-abi/lib/index.js.ABICoder.decodeParametersWith (index.js:298)
at ABICoder.push../node_modules/web3-eth-abi/lib/index.js.ABICoder.decodeParameters (index.js:285)
at Contract.push../node_modules/web3-eth-contract/lib/index.js.Contract._decodeMethodReturn (index.js:470)
at Method.outputFormatter (index.js:760)
at Method.push../node_modules/web3-core-method/lib/index.js.Method.formatOutput (index.js:147)
at sendTxCallback (index.js:523)
at index.js:308
at XMLHttpRequest.request.onreadystatechange (index.js:98)
no data in game ui pannel

@tytzM17
Copy link
Owner

tytzM17 commented Nov 4, 2021

Make sure ganache is running or contract is deployed. Deploy contract and set the contract address in app.tsx e.g. // Contact deployment address, ganache
const CONTRACT_ADDRESS = '0x00ContractAddressHere0000' Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants